|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SynchronizationManager
Manages transaction synchronizations: a list of actions to be done when
the transaction completes on the current thread. Interface is derived mostly from
TransactionSynchronizationManager
which is used by the Confluence implementation.
TransactionSynchronizationManager
,
TransactionSynchronization
,
ConfluenceSynchronizationManager
Method Summary | |
---|---|
List |
getSynchronizations()
Return an unmodifiable snapshot list of all registered synchronizations for the current thread. |
boolean |
isTransactionActive()
|
void |
registerSynchronization(org.springframework.transaction.support.TransactionSynchronization synchronization)
Registers a Spring TransactionSynchronization on the current transaction. |
void |
runOnSuccessfulCommit(Runnable task)
Register a new task to be run on successful transaction commit. |
Method Detail |
---|
void runOnSuccessfulCommit(Runnable task)
registerSynchronization(TransactionSynchronization)
.
isTransactionActive()
void registerSynchronization(org.springframework.transaction.support.TransactionSynchronization synchronization)
TransactionSynchronization
on the current transaction.
IllegalStateException
- if there is no Spring transaction available.List getSynchronizations()
IllegalStateException
- if transaction is not activeTransactionSynchronization
boolean isTransactionActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |