Class ConfluenceAOSynchronisationManager
- java.lang.Object
-
- com.atlassian.confluence.activeobjects.transaction.ConfluenceAOSynchronisationManager
-
- All Implemented Interfaces:
com.atlassian.activeobjects.spi.TransactionSynchronisationManager
public class ConfluenceAOSynchronisationManager extends Object implements com.atlassian.activeobjects.spi.TransactionSynchronisationManager
An implementation that mostly delegates to confluence core SynchronisationManager. Handles the adaption between Runnables and springs TransactionSynchronization.
-
-
Constructor Summary
Constructors Constructor Description ConfluenceAOSynchronisationManager(SynchronizationManager synchManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isActiveSynchronisedTransaction()
boolean
runOnRollBack(Runnable callback)
boolean
runOnSuccessfulCommit(Runnable callback)
-
-
-
Constructor Detail
-
ConfluenceAOSynchronisationManager
public ConfluenceAOSynchronisationManager(SynchronizationManager synchManager)
-
-
Method Detail
-
runOnRollBack
public boolean runOnRollBack(Runnable callback)
- Specified by:
runOnRollBack
in interfacecom.atlassian.activeobjects.spi.TransactionSynchronisationManager
-
runOnSuccessfulCommit
public boolean runOnSuccessfulCommit(Runnable callback)
- Specified by:
runOnSuccessfulCommit
in interfacecom.atlassian.activeobjects.spi.TransactionSynchronisationManager
-
isActiveSynchronisedTransaction
public boolean isActiveSynchronisedTransaction()
- Specified by:
isActiveSynchronisedTransaction
in interfacecom.atlassian.activeobjects.spi.TransactionSynchronisationManager
-
-