|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.core.ConfluenceSynchronizationManager
public class ConfluenceSynchronizationManager
Confluence transaction sycnhronization manager. Uses Spring for transaction management.
| Constructor Summary | |
|---|---|
ConfluenceSynchronizationManager()
|
|
| Method Summary | |
|---|---|
static ConfluenceSynchronizationManager |
getInstance()
Deprecated. Since 5.6 Obtain instance via container injection, like a normal person. |
java.util.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(java.lang.Runnable task)
Register a task to be run once the current transaction is successfully committed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfluenceSynchronizationManager()
| Method Detail |
|---|
@Deprecated public static ConfluenceSynchronizationManager getInstance()
public void runOnSuccessfulCommit(java.lang.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 java.util.List getSynchronizations()
SynchronizationManager
getSynchronizations in interface SynchronizationManagerTransactionSynchronization
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||