org.jboss.tm
public interface ExtendedJBossXATerminator
Modifier and Type | Method and Description |
---|---|
Xid[] |
doRecover(Xid xid,
String parentNodeName)
Return a list of indoubt transactions.
|
Object |
getCurrentTransactionId()
Obtain the unique id of the currently associated transaction
|
ImportedTransaction |
getImportedTransaction(Xid xid)
Lookup an imported transaction by its Xid
|
Transaction |
getTransaction(Xid xid)
Convert an imported Xid into a Transaction object.
|
Transaction |
getTransactionById(Object uid)
Look up a transaction by its id
|
Xid[] |
getXidsToRecoverForParentNode(boolean recoverInFlight,
String parentNodeName,
int recoveryFlags)
Get a list of Xids that are potentially recoverable.
|
TransactionImportResult |
importTransaction(Xid xid,
int timeoutIfNew)
A thread safe method to convert an imported Xid into a Transaction object.
|
boolean |
isRecoveryByNodeOrXidSupported()
Test whether or not the
doRecover(Xid, String) call will throw NotSupportedException |
void |
removeImportedTransaction(Xid xid)
forget about this imported transaction.
|
TransactionImportResult importTransaction(Xid xid, int timeoutIfNew) throws XAException
xid
- The global Xid of the target transaction to lookuptimeoutIfNew
- The timeout associated with the global transaction if one was created.XAException
- with code XA_RBROLLBACK if the transaction has already abortedTransaction getTransaction(Xid xid) throws XAException
xid
- the global Xid of the target transaction to lookupXAException
- with code XA_RBROLLBACK if the transaction has already abortedTransaction getTransactionById(Object uid)
uid
- an id that uniquelly identifies a transactionObject getCurrentTransactionId()
ImportedTransaction getImportedTransaction(Xid xid) throws XAException
xid
- the Xid of the transaction to lookupXAException
- if the transaction is known to have rolled backXid[] getXidsToRecoverForParentNode(boolean recoverInFlight, String parentNodeName, int recoveryFlags) throws XAException
recoverInFlight
- indicates whether or not to include transactions that have not begun 2PCparentNodeName
- If not null then only recover transactions for this noderecoveryFlags
- One of TMSTARTRSCAN, TMENDRSCAN, TMNOFLAGS. TMNOFLAGS must be used when no other flags are
set in the parameter. These constants are defined in javax.transaction.xa.XAResource interfaceXAException
- An error has occurred. Possible values are XAER_RMERR, XAER_RMFAIL, XAER_INVAL, and XAER_PROTO.Xid[] doRecover(Xid xid, String parentNodeName) throws XAException, NotSupportedException
parentNodeName
- If not null then only recover transactions for this nodenull
.XAException
- thrown if any error occurs.NotSupportedException
boolean isRecoveryByNodeOrXidSupported()
doRecover(Xid, String)
call will throw NotSupportedExceptionvoid removeImportedTransaction(Xid xid) throws XAException
xid
- the global Xid of the transaction.XAException
- thrown if there are any errors.Copyright © 2016 JBoss by Red Hat. All rights reserved.