Class TransactionContext
java.lang.Object
org.springframework.transaction.reactive.TransactionContext
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:
-
TransactionContextManager
Context
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
boolean
void
setActualTransactionActive
(boolean actualTransactionActive) void
setCurrentTransactionIsolationLevel
(Integer currentTransactionIsolationLevel) void
setCurrentTransactionName
(String currentTransactionName) void
setCurrentTransactionReadOnly
(boolean currentTransactionReadOnly) void
setSynchronizations
(Set<TransactionSynchronization> synchronizations)
-
Method Details
-
getParent
-
getResources
-
setSynchronizations
-
getSynchronizations
-
setCurrentTransactionName
-
getCurrentTransactionName
-
setCurrentTransactionReadOnly
public void setCurrentTransactionReadOnly(boolean currentTransactionReadOnly) -
isCurrentTransactionReadOnly
public boolean isCurrentTransactionReadOnly() -
setCurrentTransactionIsolationLevel
-
getCurrentTransactionIsolationLevel
-
setActualTransactionActive
public void setActualTransactionActive(boolean actualTransactionActive) -
isActualTransactionActive
public boolean isActualTransactionActive() -
clear
public void clear()
-