public interface ExtendedJBossXATerminator
Modifier and Type | Method and Description |
---|---|
Xid[] |
doRecover(Xid xid,
String parentNodeName)
Return a list of indoubt transactions.
|
Object |
getCurrentTransactionId()
Deprecated.
deprecating based of addition of wildfly transaction client.
This method is no longer needed for integration purposes with WildFly.
You can expect its removal in some of the next releases.
|
ImportedTransaction |
getImportedTransaction(Xid xid)
Deprecated.
deprecating based of addition of wildfly transaction client.
This method is no longer needed for integration purposes with WildFly.
You can expect its removal in some of the next releases.
|
Transaction |
getTransaction(Xid xid)
Convert an imported Xid into a Transaction object.
|
Transaction |
getTransactionById(Object uid)
Deprecated.
deprecating based of addition of wildfly transaction client.
This method is no longer needed for integration purposes with WildFly.
You can expect its removal in some of the next releases.
|
Xid[] |
getXidsToRecoverForParentNode(boolean recoverInFlight,
String parentNodeName,
int recoveryFlags)
Deprecated.
deprecating based of addition of wildfly transaction client.
This method is no longer needed for integration purposes with WildFly.
You can expect its removal in some of the next releases.
|
TransactionImportResult |
importTransaction(Xid xid,
int timeoutIfNew)
A thread safe method to convert an imported Xid into a Transaction object.
|
boolean |
isRecoveryByNodeOrXidSupported()
Deprecated.
deprecating based of addition of wildfly transaction client.
This method is no longer needed for integration purposes with WildFly.
You can expect its removal in some of the next releases.
|
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 aborted@Deprecated Transaction getTransactionById(Object uid)
uid
- an id that uniquelly identifies a transaction@Deprecated Object getCurrentTransactionId()
@Deprecated ImportedTransaction getImportedTransaction(Xid xid) throws XAException
xid
- the Xid of the transaction to lookupXAException
- if the transaction is known to have rolled back@Deprecated Xid[] 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.UnsupportedOperationException
- Operation is not supported in the context. This happens when Narayana runs on JTS.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
@Deprecated 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 © 2024 JBoss by Red Hat. All rights reserved.