@Nullable Transaction getCurrentTransaction() { ThreadContextImpl threadContext = currentThreadContext.get(); if (threadContext == null) { return null; } return threadContext.getTransaction(); }
void removeTransaction(Transaction transaction) { currentThreadContext.set(null); transactions.remove(transaction); }
public Holder</*@Nullable*/ ThreadContextImpl> getCurrentThreadContextHolder() { return currentThreadContext.getHolder(); }