|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Thread org.objectweb.cjdbc.controller.cache.result.threads.RelaxedCacheThread
This thread manages relaxed cache entries and remove them from the cache if their deadline has expired or they are dirty.
Field Summary | |
private ResultCache |
cache
|
private boolean |
isKilled
|
private Trace |
logger
|
(package private) int |
refreshCacheRate
|
(package private) int |
refreshCacheTime
|
private long |
threadWakeUpTime
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
RelaxedCacheThread(ResultCache cache)
Creates a new RelaxedCacheThread object |
|
RelaxedCacheThread(ResultCache cache,
int refreshCacheRate)
Creates a new RelaxedCacheThread object |
Method Summary | |
long |
getThreadWakeUpTime()
Returns the threadWakeUpTime value. |
void |
run()
|
void |
shutdown()
Shutdown the current thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private long threadWakeUpTime
private final ResultCache cache
int refreshCacheRate
int refreshCacheTime
private Trace logger
private boolean isKilled
Constructor Detail |
public RelaxedCacheThread(ResultCache cache)
RelaxedCacheThread
object
cache
- ResultCache creating this threadpublic RelaxedCacheThread(ResultCache cache, int refreshCacheRate)
RelaxedCacheThread
object
cache
- ResultCache creating this threadrefreshCacheRate
- cache refresh rate in secondsMethod Detail |
public long getThreadWakeUpTime()
public void run()
Runnable.run()
public void shutdown()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |