public interface TransactionListener
TransactionListener
provides callbacks when a transaction
is committed.Modifier and Type | Method and Description |
---|---|
void |
afterCommit(TransactionResource resource,
String lockToken,
boolean success)
This method is called after the commit has been executed.
|
void |
beforeCommit(TransactionResource resource,
String lockToken)
This method is called right before a transaction is committed.
|
void beforeCommit(TransactionResource resource, String lockToken)
resource
- the transaction resource which will be committed.lockToken
- the lock tokenvoid afterCommit(TransactionResource resource, String lockToken, boolean success)
resource
- the transaction resource which had been committed.lockToken
- the lock token.success
- if the commit was successful.Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.