Class TransactionContext

java.lang.Object
org.springframework.transaction.reactive.TransactionContext

public class TransactionContext extends Object
Mutable transaction context that encapsulates transactional synchronizations and resources in the scope of a single transaction. Transaction context is typically held by an outer TransactionContextHolder or referenced directly within from the subscriber context.
Since:
5.2
Author:
Mark Paluch, Juergen Hoeller
See Also:
  • Method Details

    • getParent

      @Nullable public TransactionContext getParent()
    • getResources

      public Map<Object,Object> getResources()
    • setSynchronizations

      public void setSynchronizations(@Nullable Set<TransactionSynchronization> synchronizations)
    • getSynchronizations

      @Nullable public Set<TransactionSynchronization> getSynchronizations()
    • setCurrentTransactionName

      public void setCurrentTransactionName(@Nullable String currentTransactionName)
    • getCurrentTransactionName

      @Nullable public String getCurrentTransactionName()
    • setCurrentTransactionReadOnly

      public void setCurrentTransactionReadOnly(boolean currentTransactionReadOnly)
    • isCurrentTransactionReadOnly

      public boolean isCurrentTransactionReadOnly()
    • setCurrentTransactionIsolationLevel

      public void setCurrentTransactionIsolationLevel(@Nullable Integer currentTransactionIsolationLevel)
    • getCurrentTransactionIsolationLevel

      @Nullable public Integer getCurrentTransactionIsolationLevel()
    • setActualTransactionActive

      public void setActualTransactionActive(boolean actualTransactionActive)
    • isActualTransactionActive

      public boolean isActualTransactionActive()
    • clear

      public void clear()