Class TransactionImporterImple
java.lang.Object
com.arjuna.ats.internal.jta.transaction.jts.jca.TransactionImporterImple
- All Implemented Interfaces:
TransactionImporter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the subordinate (imported) transaction associated with the global transaction.org.jboss.tm.TransactionImportResult
importRemoteTransaction
(Xid xid, int timeout) Create a subordinate transaction associated with the global transaction inflow and having a specified timeout.importTransaction
(Xid xid) Create a subordinate transaction associated with the global transaction inflow.importTransaction
(Xid xid, int timeout) Create a subordinate transaction associated with the global transaction inflow and having a specified timeout.recoverTransaction
(Uid actId) Used to recover an imported transaction.void
Remove the subordinate (imported) transaction.
-
Constructor Details
-
TransactionImporterImple
public TransactionImporterImple()
-
-
Method Details
-
importTransaction
Create a subordinate transaction associated with the global transaction inflow. No timeout is associated with the transaction.- Specified by:
importTransaction
in interfaceTransactionImporter
- Parameters:
xid
- the global transaction.- Returns:
- the subordinate transaction.
- Throws:
XAException
- thrown if there are any errors.
-
importTransaction
Description copied from interface:TransactionImporter
Create a subordinate transaction associated with the global transaction inflow and having a specified timeout.- Specified by:
importTransaction
in interfaceTransactionImporter
- Parameters:
xid
- the global transaction.timeout
- the timeout associated with the global transaction.- Returns:
- the subordinate transaction.
- Throws:
XAException
- thrown if there are any errors.
-
importRemoteTransaction
public org.jboss.tm.TransactionImportResult importRemoteTransaction(Xid xid, int timeout) throws XAException Create a subordinate transaction associated with the global transaction inflow and having a specified timeout.- Specified by:
importRemoteTransaction
in interfaceTransactionImporter
- Parameters:
xid
- the global transaction.timeout
- the timeout associated with the global transaction.- Returns:
- the subordinate transaction.
- Throws:
XAException
- thrown if there are any errors.
-
recoverTransaction
Description copied from interface:TransactionImporter
Used to recover an imported transaction.- Specified by:
recoverTransaction
in interfaceTransactionImporter
- Parameters:
actId
- the state to recover.- Returns:
- the recovered transaction object.
- Throws:
XAException
-
getImportedTransaction
Get the subordinate (imported) transaction associated with the global transaction.- Specified by:
getImportedTransaction
in interfaceTransactionImporter
- Parameters:
xid
- the global transaction.- Returns:
- the subordinate transaction or
null
if there is none. - Throws:
XAException
- thrown if there are any errors.
-
removeImportedTransaction
Remove the subordinate (imported) transaction.- Specified by:
removeImportedTransaction
in interfaceTransactionImporter
- Parameters:
xid
- the global transaction.- Throws:
XAException
- thrown if there are any errors.
-