Interface TransactionObserver
public interface TransactionObserver
Observer of internal transaction events.
A TransactionObserver must be registered with the TransactionCoordinator
by calling addObserver().
-
Method Summary
Modifier and TypeMethodDescriptionvoidCallback for processing the beginning of a transaction.voidafterCompletion(boolean successful, boolean delayed) Callback for processing the last phase of transaction completion.voidCallback for processing the initial phase of transaction completion.
-
Method Details
-
afterBegin
void afterBegin()Callback for processing the beginning of a transaction.Do not rely on this being called as the transaction may be started in some way other than via the
TransactionAPI. -
beforeCompletion
void beforeCompletion()Callback for processing the initial phase of transaction completion. -
afterCompletion
void afterCompletion(boolean successful, boolean delayed) Callback for processing the last phase of transaction completion.- Parameters:
successful- Was the transaction successful?
-