Package com.atlassian.confluence.core
Interface SynchronizationManager
- All Known Subinterfaces:
SynchronizationManagerInternal
- All Known Implementing Classes:
ConfluenceSynchronizationManager
public interface SynchronizationManager
Manages transaction synchronizations: a list of actions to be done when
the transaction completes on the current thread.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
void
Register a new task to be run on successful transaction commit.
-
Method Details
-
runOnSuccessfulCommit
Register a new task to be run on successful transaction commit. If transaction is not active, the task is run immediately.- See Also:
-
isTransactionActive
boolean isTransactionActive()- Returns:
- true if there is an active Spring transaction which accepts synchronizations, otherwise false.
-