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 SynchronizationManager
SynchronizationManager.isTransactionActive()
public boolean isTransactionActive()
isTransactionActive
in interface SynchronizationManager
public void registerSynchronization(org.springframework.transaction.support.TransactionSynchronization synchronization)
SynchronizationManager
TransactionSynchronization
on the current transaction.registerSynchronization
in interface SynchronizationManager
public List getSynchronizations()
SynchronizationManager
getSynchronizations
in interface SynchronizationManager
TransactionSynchronization
Copyright © 2003–2016 Atlassian. All rights reserved.