public class TransactionImporterImple extends Object implements TransactionImporter
Constructor and Description |
---|
TransactionImporterImple() |
Modifier and Type | Method and Description |
---|---|
SubordinateTransaction |
getImportedTransaction(Xid xid)
Get the subordinate (imported) transaction associated with the
global transaction.
|
SubordinateTransaction |
importTransaction(Xid xid)
Create a subordinate transaction associated with the
global transaction inflow.
|
SubordinateTransaction |
importTransaction(Xid xid,
int timeout)
Create a subordinate transaction associated with the
global transaction inflow and having a specified timeout.
|
SubordinateTransaction |
recoverTransaction(Uid actId)
Used to recover an imported transaction.
|
void |
removeImportedTransaction(Xid xid)
Remove the subordinate (imported) transaction.
|
public SubordinateTransaction importTransaction(Xid xid) throws XAException
importTransaction
in interface TransactionImporter
xid
- the global transaction.XAException
- thrown if there are any errors.public SubordinateTransaction importTransaction(Xid xid, int timeout) throws XAException
importTransaction
in interface TransactionImporter
xid
- the global transaction.timeout
- the timeout associated with the global transaction.XAException
- thrown if there are any errors.public SubordinateTransaction recoverTransaction(Uid actId) throws XAException
TransactionImporter
recoverTransaction
in interface TransactionImporter
actId
- the state to recover.XAException
public SubordinateTransaction getImportedTransaction(Xid xid) throws XAException
getImportedTransaction
in interface TransactionImporter
xid
- the global transaction.null
if there
is none.XAException
- thrown if there are any errors.public void removeImportedTransaction(Xid xid) throws XAException
removeImportedTransaction
in interface TransactionImporter
xid
- the global transaction.XAException
- thrown if there are any errors.Copyright © 2021 JBoss by Red Hat. All rights reserved.