public interface CommitListener
CommitListener
interface defines the callback operations that
enable a Resource Adaptor to be notified of the outcome of an asynchronous
commit operation. An asynchronous commit operation is performed by invoking
either SleeTransaction.asyncCommit(javax.slee.transaction.CommitListener)
or SleeTransactionManager.asyncCommit(javax.slee.transaction.CommitListener)
.Modifier and Type | Method and Description |
---|---|
void |
committed()
This method is invoked by the SLEE to indicate the transaction commit was successful.
|
void |
heuristicMixed(HeuristicMixedException hme)
This method is invoked by the SLEE to report that a heuristic decision was made
and that some relevant updates have been committed while others have been rolled back.
|
void |
heuristicRollback(HeuristicRollbackException hrbe)
This method is invoked by the SLEE to indicate that a heuristic decision was made
and that all relevant updates have been rolled back.
|
void |
rolledBack(RollbackException rbe)
This method is invoked by the SLEE to indicate the transaction rolled back
instead of committing.
|
void |
systemException(SystemException se)
This method is invoked by the SLEE to indicate that the transaction manager
encountered an unexpected error while attempting to commit the transaction.
|
void committed()
void rolledBack(RollbackException rbe)
rbe
- the RollbackException
which may provide information
about why the transaction rolled back.void heuristicMixed(HeuristicMixedException hme)
hme
- the HeuristicMixedException
which may provide information
about the heuristic decision.void heuristicRollback(HeuristicRollbackException hrbe)
hrbe
- the HeuristicRollbackException
which may provide information
about the heuristic decision.void systemException(SystemException se)
se
- the SystemException
which may provide information
about the unexpected error.