Class RecoveredTransactionReplayer

java.lang.Object
java.lang.Thread
com.arjuna.ats.internal.jts.recovery.transactions.RecoveredTransactionReplayer
All Implemented Interfaces:
Runnable

public class RecoveredTransactionReplayer extends Thread
Threaded object used to replay phase 2 of the commit protocol in a background thread.
  • Constructor Details

    • RecoveredTransactionReplayer

      public RecoveredTransactionReplayer(Uid actionUid, String actionType)
  • Method Details

    • tidyup

      public final void tidyup()
      Since:
      JTS 2.1.1.
    • getStatus

      public final Status getStatus()
      Get the status of the recovered transaction
    • getRecoveryStatus

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

      public final void swapResource(Uid rcUid, Resource r)
      Swap an old Resource that was registered with the transaction for a new one. The old one is identified by its RecoveryCoordinator that was returned when the Resource was registered. The second parameter is the new Resouce.
    • replayPhase2

      public final void replayPhase2()
      Starts the thread to replay phase 2 of the transaction in the background.
    • run

      public final void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread
    • isPresent

      public static Object isPresent(Uid theUid)
      Since:
      JTS 2.1.1.