public class ConfluenceSynchronizationManager extends Object implements SynchronizationManager
| Constructor and Description |
|---|
ConfluenceSynchronizationManager() |
| Modifier and Type | Method and Description |
|---|---|
static ConfluenceSynchronizationManager |
getInstance()
Deprecated.
Since 5.6 Obtain instance via container injection, like a normal person.
|
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 task to be run once the current transaction is successfully committed.
|
@Deprecated public static ConfluenceSynchronizationManager getInstance()
public void runOnSuccessfulCommit(Runnable task)
Register a task to be run once the current transaction is successfully committed. If no transaction exists the task is run immediately. All tasks are run on the thread which registered them.
If a task produces an exception it is logged and swallowed.
runOnSuccessfulCommit in interface SynchronizationManagerSynchronizationManager.isTransactionActive()public boolean isTransactionActive()
isTransactionActive in interface SynchronizationManagerpublic void registerSynchronization(org.springframework.transaction.support.TransactionSynchronization synchronization)
SynchronizationManagerTransactionSynchronization on the current transaction.registerSynchronization in interface SynchronizationManagerpublic List getSynchronizations()
SynchronizationManagergetSynchronizations in interface SynchronizationManagerTransactionSynchronizationCopyright © 2003–2017 Atlassian. All rights reserved.