org.objectweb.cjdbc.controller.cache.result.threads
Class EagerCacheThread

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.objectweb.cjdbc.controller.cache.result.threads.EagerCacheThread
All Implemented Interfaces:
java.lang.Runnable

public final class EagerCacheThread
extends java.lang.Thread

This thread manages eager cache entries and remove them from the cache if they have expired.

Version:
1.0
Author:
Nicolas Modrzyk

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
EagerCacheThread(ResultCache cache)
          Creates a new EagerCacheThread 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

cache

private final ResultCache cache

threadWakeUpTime

private long threadWakeUpTime

refreshCacheRate

int refreshCacheRate

refreshCacheTime

int refreshCacheTime

logger

private Trace logger

isKilled

private boolean isKilled
Constructor Detail

EagerCacheThread

public EagerCacheThread(ResultCache cache)
Creates a new EagerCacheThread object

Parameters:
cache - ResultCache creating this thread
Method Detail

getThreadWakeUpTime

public long getThreadWakeUpTime()
Returns the threadWakeUpTime value.

Returns:
Returns the threadWakeUpTime.

run

public void run()
See Also:
Runnable.run()

shutdown

public void shutdown()
Shutdown the current thread.



Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.