Interface VTransactionListener
-
- All Known Implementing Classes:
VTransactionListenerImpl
public interface VTransactionListenerThis class is used to listen events during the execution of the transaction.- Author:
- npiedeloup
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidlogAfterCommitError(Throwable th)voidonFinish(boolean commitSucceeded, long elapsedTimeMs)Notifies the end of the transaction.voidonStart()Notifies the start of the transaction.
-
-
-
Method Detail
-
onStart
void onStart()
Notifies the start of the transaction.
-
onFinish
void onFinish(boolean commitSucceeded, long elapsedTimeMs)Notifies the end of the transaction. This method is called on commit or rollback.- Parameters:
commitSucceeded- if the transaction has been committed successfullyelapsedTimeMs- the elapse time in ms
-
logAfterCommitError
void logAfterCommitError(Throwable th)
- Parameters:
th- the error
-
-