public class XATerminatorImple extends Object implements javax.resource.spi.XATerminator, XATerminatorExtensions
| Constructor and Description |
|---|
XATerminatorImple() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
beforeCompletion(Xid xid)
Call beforeCompletion on the registered instance.
|
void |
commit(Xid xid,
boolean onePhase)
Commit the transaction identified and hence any inflow-associated work.
|
Xid[] |
doRecover(Xid xid,
String parentNodeName)
Return a list of indoubt transactions.
|
void |
forget(Xid xid)
If the transaction subordinate generated a heuristic, then this operation
will be called later once that heuristic has been resolved.
|
int |
prepare(Xid xid)
Prepare the imported transaction.
|
Xid[] |
recover(int flag)
Return a list of indoubt transactions.
|
void |
rollback(Xid xid)
Rollback the imported transaction subordinate.
|
public void commit(Xid xid, boolean onePhase) throws XAException
commit in interface javax.resource.spi.XATerminatorxid - the transaction to commitonePhase - whether or not this is a one-phase commit (should only be
true if there is a single resource associated
with the transaction).XAException - thrown if there are any errors, including if the
transaction cannot commit and has to roll back.public void forget(Xid xid) throws XAException
forget in interface javax.resource.spi.XATerminatorxid - the transaction.XAException - if any error happens.public int prepare(Xid xid) throws XAException
prepare in interface javax.resource.spi.XATerminatorxid - the transaction to prepare.XAException - thrown if any error occurs, including if the transaction has
rolled back.public Xid[] recover(int flag) throws XAException
recover in interface javax.resource.spi.XATerminatorflag - either XAResource.TMSTARTRSCAN to indicate the start of a
recovery scan, or XAResource.TMENDRSCAN to indicate the end of
the recovery scan.null.XAException - thrown if any error occurs.public Xid[] doRecover(Xid xid, String parentNodeName) throws XAException
nodeName - Only recover transactions for this node (unless set to NodeNameXAResourceOrphanFilter.RECOVER_ALL_NODES)null.XAException - thrown if any error occurs.public void rollback(Xid xid) throws XAException
rollback in interface javax.resource.spi.XATerminatorxid - the transaction to roll back.XAException - thrown if there are any errors.public boolean beforeCompletion(Xid xid) throws SystemException
XATerminatorExtensionsbeforeCompletion in interface XATerminatorExtensionsxid - the transaction instance.SystemExceptionCopyright © 2013. All rights reserved.