Class CachedRecoveredTransaction

java.lang.Object
com.arjuna.ats.internal.jts.recovery.transactions.CachedRecoveredTransaction

public class CachedRecoveredTransaction extends Object
Any transaction that is identified by the recovery system to require recovery is manipulated through CachedRecoveredTransactions. CachedRecoveredTransactions delegate through to a static transaction cache which ensures that there is no interference between different threads that may be working with the same transaction

Version:
$Id: CachedRecoveredTransaction.java 2342 2006-03-30 13:06:17Z $
Author:
Dave Ingham (dave@arjuna.com)
See Also:
  • Constructor Details

    • CachedRecoveredTransaction

      public CachedRecoveredTransaction(Uid actionUid, String theType)
  • Method Details

    • getTransactionUid

      public Uid getTransactionUid()
    • get_status

      public Status get_status() throws org.omg.CORBA.SystemException
      Get the status of the transaction
      Throws:
      org.omg.CORBA.SystemException
    • getRecoveryStatus

      public int getRecoveryStatus()
      Get the recovery status of the transaction
    • addResourceRecord

      public void addResourceRecord(Uid rcUid, Resource r)
      Add a new resource to a recovered transaction. This is primarily to allow a new resource that has been provided through a replay_completion to be added to the transaction and thereby replacing the original resource that was passed in on register_resource.
    • replayPhase2

      public void replayPhase2()
      Replays phase 2 of the transaction.