Class LastAccessedThread
- java.lang.Object
-
- java.lang.Thread
-
- edu.uiuc.ncsa.security.core.cache.MyThread
-
- edu.uiuc.ncsa.security.storage.events.LastAccessedThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringLOCK_ID-
Fields inherited from class edu.uiuc.ncsa.security.core.cache.MyThread
cleanupInterval
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description LastAccessedThread(String name, MyLoggingFacade logger, LastAccessedEventListener lastAccessedEventListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidinfo(String x)booleanisDebugOn()booleanisStopThread()Is this thread set to stop?voidrun()voidsetDebugOn(boolean debugOn)voidsetStopThread(boolean stopThread)Sets the flag to stop this thread.protected voidupdateStore()protected voidwarn(String x)-
Methods inherited from class edu.uiuc.ncsa.security.core.cache.MyThread
debug, debug, getAlarms, getCleanupInterval, getNextSleepInterval, isTestMode, setAlarms, setCleanupInterval, setTestMode
-
Methods 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, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
LOCK_ID
public static String LOCK_ID
-
-
Constructor Detail
-
LastAccessedThread
public LastAccessedThread(String name, MyLoggingFacade logger, LastAccessedEventListener lastAccessedEventListener)
-
-
Method Detail
-
isDebugOn
public boolean isDebugOn()
-
setDebugOn
public void setDebugOn(boolean debugOn)
-
updateStore
protected void updateStore()
-
isStopThread
public boolean isStopThread()
Description copied from class:MyThreadIs this thread set to stop?- Overrides:
isStopThreadin classMyThread- Returns:
-
setStopThread
public void setStopThread(boolean stopThread)
Description copied from class:MyThreadSets the flag to stop this thread. The next time the thread wakes up after this is enabled, the thread will exit. This allows for a clean shutdown of caching.- Overrides:
setStopThreadin classMyThread
-
-