public interface SynchronizationManager
TransactionSynchronizationManager
which is used by the Confluence implementation.TransactionSynchronizationManager
,
TransactionSynchronization
,
ConfluenceSynchronizationManager
Modifier and Type | Method and Description |
---|---|
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.
|
void runOnSuccessfulCommit(Runnable task)
To run a task with different transaction result criteria, use
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()
Copyright © 2003–2016 Atlassian. All rights reserved.