Package de.caluga.morphium.cache
Class CacheHousekeeper
java.lang.Object
java.lang.Thread
de.caluga.morphium.cache.CacheHousekeeper
- All Implemented Interfaces:
ShutdownListener,Runnable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()getValidCacheTime(Class<?> cls) voidvoidrun()voidvoidvoidsetGlobalValidCacheTime(int gc) voidsetHouskeepingPause(int p) voidsetValidCacheTime(Class<?> cls, int timeout) 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
-
Constructor Details
-
CacheHousekeeper
-
-
Method Details
-
setGlobalValidCacheTime
public void setGlobalValidCacheTime(int gc) -
setHouskeepingPause
public void setHouskeepingPause(int p) -
setAnnotationHelper
-
setValidCacheTime
-
setDefaultValidCacheTime
-
getValidCacheTime
-
end
public void end() -
run
public void run() -
onShutdown
- Specified by:
onShutdownin interfaceShutdownListener
-