Interface TransactionImporter
- All Known Implementing Classes:
TransactionImporterImple
,TransactionImporterImple
public interface TransactionImporter
A TransactionImporter is used to manager the relationship with external SubordinateTransactions.
-
Method Summary
Modifier and TypeMethodDescriptionGet the subordinate (imported) transaction associated with the global transaction.org.jboss.tm.TransactionImportResult
importRemoteTransaction
(Xid xid, int 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.
-
Method Details
-
importTransaction
Create a subordinate transaction associated with the global transaction inflow. No timeout is associated with the transaction.- Parameters:
xid
- the global transaction.- Returns:
- the subordinate transaction.
- Throws:
XAException
- thrown if there are any errors.
-
importTransaction
Create a subordinate transaction associated with the global transaction inflow and having a specified timeout.- 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
org.jboss.tm.TransactionImportResult importRemoteTransaction(Xid xid, int timeout) throws XAException - Throws:
XAException
-
recoverTransaction
Used to recover an imported transaction.- Parameters:
actId
- the state to recover.- Returns:
- the recovered transaction object.
- Throws:
XAException
-
getImportedTransaction
Get the subordinate (imported) transaction associated with the global transaction.- 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.- Parameters:
xid
- the global transaction.- Throws:
XAException
- thrown if there are any errors.
-