接口 TransactionObserver
-
public interface TransactionObserverObserver of internal transaction events.- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 voidafterBegin()Callback for processing the beginning of a transaction.voidafterCompletion(boolean successful, boolean delayed)Callback for processing the last phase of transaction completion.voidbeforeCompletion()Callback for processing the initial phase of transaction completion.
-
-
-
方法详细资料
-
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 a manner other than through theTransactionAPI.
-
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.- 参数:
successful- Was the transaction successful?
-
-