tyrex.tm
public interface TransactionInterceptor
The interceptor is notified when transactions are created, attempt to commit, rolled back, and when they are resumed or suspended from threads.
The interceptor may affect the outcome of an attempt to commit or resume a transaction.
The interceptor is notified of the outcome of each transaction in the form of a heuristic decision made regarding the transaction and all it's resources.
Version: $Revision: 1.3 $ $Date: 2001/03/12 19:20:19 $
Method Summary | |
---|---|
void | begin(Xid xid)
Called to indicate that a transaction has begun. |
void | commit(Xid xid)
Called to indicate that a transaction has been asked to commit.
|
void | completed(Xid xid, int heuristic)
Called to indicate that a heuristic decision has been made
regarding this transaction and the outcome of such a
decision. |
void | resume(Xid xid, Thread thread)
Called to indicate that a transaction is been resumed in
the specified thread. |
void | rollback(Xid xid)
Called to indicate that a transaction has been asked to
rollback. |
void | suspend(Xid xid, Thread thread)
Called to indicate that a transaction has been suspended
from the specified thread, and the thread is no longer
associated with the transaction.
|
Parameters: Xid The transaction identifier
Parameters: xid The transaction identifier
Throws: RollbackException Thrown to indicate that the transaction must not commit
Parameters: xid The transaction identifier heuristic The heuristic decision
Parameters: xid The transaction identifier thread The associated thread
Throws: InvalidTransactionException Prevents the thread from being associated with this transaction
Parameters: xid The transaction identifier
Parameters: xid The transaction identifier thread The associated thread