Class ExpiredEntryMonitor

java.lang.Object
java.lang.Thread
com.arjuna.ats.internal.arjuna.recovery.ExpiredEntryMonitor
All Implemented Interfaces:
Runnable

public class ExpiredEntryMonitor extends Thread
Threaded object to run ExpiryScanner implementations to scan the action store to remove items deemed expired by some algorithm. Performs a scan at interval defined by the property com.arjuna.ats.arjuna.recovery.expiryScanInterval (hours). ExpiryScanner implementations are registered as properties beginning with "com.arjuna.ats.arjuna.recovery.expiryScanner".

Singleton, instantiated in the RecoveryManager.

  • Method Details

    • startUp

      public static boolean startUp()
      Start the monitor thread, if the properties make it appropriate
    • shutdown

      public static void shutdown()
      terminate any currently active monitor thread, cancelling any further scans but waiting for the thread to exit before returning
    • run

      public void run()
      performs periodic scans until a shutdwn is notified
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread