All Packages Class Hierarchy This Package Previous Next Index
Interface semper.txlayer.transaction.TransactionObserver
- public interface TransactionObserver
This is an interface that all TransactionObservers must fulfill
in order to be used in the txlayer.
Several callback methods are defined which must be implemented.
Note, however, that the callback services in the Transaction class
may change as our definition of when to callback
is not finished.
-
onAbort(Transaction)
- Is called when the transaction is aborted.
-
onBegin(Transaction)
- Is called when the transaction is begun.
-
onCommit(Transaction)
- Is called when the transaction makes a commit
-
onEnd(Transaction)
- Is called when the transaction is ended.
-
onMakeSave(Transaction)
- Is called when the transaction saves its state to persistent storage.
-
onRollback(Transaction)
- Is called when the transaction makes a rollback.
-
onSetSignal(Transaction)
- Is called when a signal is set in the transaction.
onAbort
public abstract void onAbort(Transaction t)
- Is called when the transaction is aborted.
- Parameters:
- t - The transaction which is observered
onBegin
public abstract void onBegin(Transaction t)
- Is called when the transaction is begun.
- Parameters:
- t - The transaction which is observered
onEnd
public abstract void onEnd(Transaction t)
- Is called when the transaction is ended.
- Parameters:
- t - The transaction which is observered
onRollback
public abstract void onRollback(Transaction t)
- Is called when the transaction makes a rollback.
- Parameters:
- t - The transaction which is observered
onCommit
public abstract void onCommit(Transaction t)
- Is called when the transaction makes a commit
- Parameters:
- t - The transaction which is observered
onMakeSave
public abstract void onMakeSave(Transaction t)
- Is called when the transaction saves its state to persistent storage.
- Parameters:
- t - The transaction which is observered
onSetSignal
public abstract void onSetSignal(Transaction t)
- Is called when a signal is set in the transaction.
- Parameters:
- t - The transaction which is observered
All Packages Class Hierarchy This Package Previous Next Index