Class TransactionCallbackUtil
java.lang.Object
com.liferay.portal.kernel.transaction.TransactionCallbackUtil
Registers callbacks against the current transaction's lifecycle. Commit
callbacks run after the transaction commits, rollback callbacks run after it
rolls back, and completion callbacks run after either outcome, ordered after
the outcome specific callbacks. The listener recognizes savepoint backed
nested propagation scopes and keeps their callbacks in savepoint frames: a
scope that commits promotes its callbacks to the enclosing scope, while a
scope that rolls back runs its rollback and completion callbacks and
discards its commit callbacks.
- Author:
- Shuyang Zhou
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregisterCommitCallback(Callable<?> callable) static voidregisterCompletionCallback(Callable<?> callable) static voidregisterRollbackCallback(Callable<?> callable)
-
Field Details
-
TRANSACTION_LIFECYCLE_LISTENER
-
-
Constructor Details
-
TransactionCallbackUtil
public TransactionCallbackUtil()
-
-
Method Details
-
registerCommitCallback
-
registerCompletionCallback
-
registerRollbackCallback
-