public interface SubordinateTransactionControl
| Modifier and Type | Field and Description |
|---|---|
static SubordinateTransactionControl |
EMPTY
An empty subordinate transaction controller.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeCompletion()
Perform before-commit operations, including running all transaction synchronizations.
|
void |
commit(boolean onePhase)
Commit a transaction, either in a single phase or after a previous prepare.
|
void |
end(int flags)
End work on behalf of a transaction branch, disassociating the subordinate from the transaction branch.
|
void |
forget()
Forget the (previously prepared) transaction.
|
int |
prepare()
Prepare the transaction.
|
void |
rollback()
Roll back the subordinate.
|
static final SubordinateTransactionControl EMPTY
void rollback()
throws XAException
XAException - (with one of the above error codes) if an error occursvoid end(int flags) throws XAException
flags parameter may equal one of the following:
XAResource.TMFAIL indicating that the transaction work has failed, and that the subordinate may
mark the transaction as rollback-onlyXAResource.TMSUCCESS indicating that the work has completed successfully and that a subsequent
prepare() is likelyflags - one of the valid flag values: TMSUSPEND, TMFAIL, or TMSUCCESSXAException - (with one of the above error codes) if an error occursvoid beforeCompletion()
throws XAException
XAException - (with one of the above error codes) if an error occursint prepare()
throws XAException
XAResource.XA_OK or XAResource.XA_RDONLYXAException - (with one of the above error codes) if an error occursvoid forget()
throws XAException
XAException - (with one of the above error codes) if an error occursvoid commit(boolean onePhase)
throws XAException
XAException.XAER_RMERRXAException.XAER_RMFAILXAException.XAER_INVALXAException.XAER_PROTOXAException.XA_HEURHAZXAException.XA_HEURCOMXAException.XA_HEURRBXAException.XA_HEURMIXonePhase flag is true, one of the following error codes is also possible:
onePhase - true to commit in a single phase, false to commit after prepareXAException - (with one of the above error codes) if an error occursCopyright © 2017 JBoss by Red Hat. All rights reserved.