Package de.caluga.morphium.cache
Class CacheHousekeeper
- java.lang.Object
-
- java.lang.Thread
-
- de.caluga.morphium.cache.CacheHousekeeper
-
- All Implemented Interfaces:
ShutdownListener,Runnable
public class CacheHousekeeper extends Thread implements ShutdownListener
-
-
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 Constructor Description CacheHousekeeper(MorphiumCache m)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidend()IntegergetValidCacheTime(Class<?> cls)voidonShutdown(Morphium m)voidrun()voidsetAnnotationHelper(AnnotationAndReflectionHelper hlp)voidsetDefaultValidCacheTime(Class cls)voidsetGlobalValidCacheTime(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 Detail
-
CacheHousekeeper
public CacheHousekeeper(MorphiumCache m)
-
-
Method Detail
-
setGlobalValidCacheTime
public void setGlobalValidCacheTime(int gc)
-
setHouskeepingPause
public void setHouskeepingPause(int p)
-
setAnnotationHelper
public void setAnnotationHelper(AnnotationAndReflectionHelper hlp)
-
setValidCacheTime
public void setValidCacheTime(Class<?> cls, int timeout)
-
setDefaultValidCacheTime
public void setDefaultValidCacheTime(Class cls)
-
end
public void end()
-
onShutdown
public void onShutdown(Morphium m)
- Specified by:
onShutdownin interfaceShutdownListener
-
-