Class TransactionImple
java.lang.Object
com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple
com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple
com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.jca.TransactionImple
- All Implemented Interfaces:
SubordinateTransaction
,Transaction
,jakarta.transaction.Transaction
,org.jboss.tm.ImportedTransaction
-
Field Summary
Fields inherited from class com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple
_theTransaction, _xaResourceRecordWrappingPlugin
Fields inherited from interface com.arjuna.ats.jta.transaction.Transaction
XACONNECTION, XAMODIFIER
-
Constructor Summary
ConstructorDescriptionTransactionImple
(int timeout) Deprecated.Only used by testsTransactionImple
(int timeout, Xid importedXid) TransactionImple
(Uid actId) Used for failure recovery. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Has the transaction been activated successfully? If not, we wait and try again later.final Xid
baseXid()
If this is an imported transaction (via JCA) then this will be the Xid we are pretending to be.getId()
get a unique identifier for this transactionfinal void
void
recover()
Force this transaction to try to recover itself again.toString()
Methods inherited from class com.arjuna.ats.internal.jta.transaction.arjunacore.subordinate.TransactionImple
commit, commitAndDisassociate, createXid, doBeforeCompletion, doCommit, doForget, doOnePhaseCommit, doPrepare, doRollback, rollback, rollbackAndDisassociate
Methods inherited from class com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple
delistResource, endAssociation, endSuspendedRMs, enlistResource, enlistResource, equals, get_uid, getDeferredThrowables, getRemainingTimeoutMills, getResources, getStatus, getSynchronizations, getTimeout, getTransaction, getTransaction, getTransactions, getTxId, getTxLocalResource, getXAResourceState, hashCode, isAlive, putTransaction, putTxLocalResource, registerSynchronization, removeTransaction, setRollbackOnly, setRollbackOnly, setXAResourceState, supportsDeferredThrowables
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.arjuna.ats.internal.jta.transaction.arjunacore.jca.SubordinateTransaction
doBeforeCompletion, doCommit, doForget, doOnePhaseCommit, doPrepare, doRollback, get_uid, getDeferredThrowables, supportsDeferredThrowables
Methods inherited from interface jakarta.transaction.Transaction
commit, delistResource, enlistResource, getStatus, registerSynchronization, rollback, setRollbackOnly
-
Constructor Details
-
TransactionImple
public TransactionImple(int timeout) Deprecated.Only used by testsCreate a new transaction with the specified timeout. -
TransactionImple
-
TransactionImple
Used for failure recovery.- Parameters:
actId
- the transaction state to recover.
-
-
Method Details
-
getParentNodeName
-
recordTransaction
public final void recordTransaction() -
toString
- Overrides:
toString
in classTransactionImple
-
baseXid
If this is an imported transaction (via JCA) then this will be the Xid we are pretending to be. Otherwise, it will be null.- Specified by:
baseXid
in interfaceorg.jboss.tm.ImportedTransaction
- Specified by:
baseXid
in interfaceSubordinateTransaction
- Overrides:
baseXid
in classTransactionImple
- Returns:
- null if we are a local transaction, a valid Xid if we have been imported.
-
getId
Description copied from interface:org.jboss.tm.ImportedTransaction
get a unique identifier for this transaction- Specified by:
getId
in interfaceorg.jboss.tm.ImportedTransaction
- Returns:
- an opaque id
-
recover
public void recover()Force this transaction to try to recover itself again.- Specified by:
recover
in interfaceorg.jboss.tm.ImportedTransaction
- Specified by:
recover
in interfaceSubordinateTransaction
-
activated
public boolean activated()Has the transaction been activated successfully? If not, we wait and try again later.- Specified by:
activated
in interfaceorg.jboss.tm.ImportedTransaction
- Specified by:
activated
in interfaceSubordinateTransaction
- Overrides:
activated
in classTransactionImple
- Returns:
true
if the transaction was activated,false
otherwise.
-