Class ExpiredEntryMonitor
java.lang.Object
java.lang.Thread
com.arjuna.ats.internal.arjuna.recovery.ExpiredEntryMonitor
- All Implemented Interfaces:
Runnable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
run()
performs periodic scans until a shutdwn is notifiedstatic void
shutdown()
terminate any currently active monitor thread, cancelling any further scans but waiting for the thread to exit before returningstatic boolean
startUp()
Start the monitor thread, if the properties make it appropriateMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
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
-