org.openorb.ots

Interface ManagerCallbackOperations

public interface ManagerCallbackOperations

To manage transactions, a user has to register a ManagerCallback object to the OTS manager. By this way, the user manager will be notified when transactions begin, commit or rollback.
Method Summary
voidtransaction_committed(XID id)
This operation is automatically called by this OTS, when a new transaction has been committed.
voidtransaction_created(Control control, XID id)
This operation is automatically called by this OTS, when a new transaction has been created.
voidtransaction_heuristic(XID id, HeuristicKind heuristic)
This operation is automatically called by this OTS, when a new transaction has been committed or rolledback with an heuristic.
voidtransaction_rolledback(XID id)
This operation is automatically called by this OTS, when a new transaction has been rolledback.

Method Detail

transaction_committed

public void transaction_committed(XID id)
This operation is automatically called by this OTS, when a new transaction has been committed.

Parameters: id the transaction XID

transaction_created

public void transaction_created(Control control, XID id)
This operation is automatically called by this OTS, when a new transaction has been created.

Parameters: control the new available control to manage this transaction id the transaction XID

transaction_heuristic

public void transaction_heuristic(XID id, HeuristicKind heuristic)
This operation is automatically called by this OTS, when a new transaction has been committed or rolledback with an heuristic.

Parameters: id the transaction XID

transaction_rolledback

public void transaction_rolledback(XID id)
This operation is automatically called by this OTS, when a new transaction has been rolledback.

Parameters: id the transaction XID