Interface TransactionImporter

All Known Implementing Classes:
TransactionImporterImple, TransactionImporterImple

public interface TransactionImporter
A TransactionImporter is used to manager the relationship with external SubordinateTransactions.
  • Method Details

    • importTransaction

      SubordinateTransaction importTransaction(Xid xid) throws XAException
      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

      SubordinateTransaction importTransaction(Xid xid, int timeout) throws XAException
      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

      SubordinateTransaction recoverTransaction(Uid actId) throws XAException
      Used to recover an imported transaction.
      Parameters:
      actId - the state to recover.
      Returns:
      the recovered transaction object.
      Throws:
      XAException
    • getImportedTransaction

      SubordinateTransaction getImportedTransaction(Xid xid) throws XAException
      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

      void removeImportedTransaction(Xid xid) throws XAException
      Remove the subordinate (imported) transaction.
      Parameters:
      xid - the global transaction.
      Throws:
      XAException - thrown if there are any errors.