Class VTransactionListenerImpl
- java.lang.Object
-
- io.vertigo.commons.impl.transaction.listener.VTransactionListenerImpl
-
- All Implemented Interfaces:
VTransactionListener
public final class VTransactionListenerImpl extends Object implements VTransactionListener
This class is the standard implementation.- Author:
- pchretien
-
-
Constructor Summary
Constructors Constructor Description VTransactionListenerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidlogAfterCommitError(Throwable th)voidonFinish(boolean commitSucceeded, long elapsedTime)Notifies the end of the transaction.voidonStart()Notifies the start of the transaction.
-
-
-
Method Detail
-
onStart
public void onStart()
Notifies the start of the transaction.- Specified by:
onStartin interfaceVTransactionListener
-
onFinish
public void onFinish(boolean commitSucceeded, long elapsedTime)Notifies the end of the transaction. This method is called on commit or rollback.- Specified by:
onFinishin interfaceVTransactionListener- Parameters:
commitSucceeded- if the transaction has been committed successfullyelapsedTime- the elapse time in ms
-
logAfterCommitError
public void logAfterCommitError(Throwable th)
- Specified by:
logAfterCommitErrorin interfaceVTransactionListener- Parameters:
th- the error
-
-