|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--org.w3c.www.protocol.http.cache.CacheSweeper
Field Summary | |
protected static int |
STATE_CLEAN_GENERATIONS
|
protected static int |
STATE_CLEAN_STORED
|
protected static int |
STATE_FORCE_CLEAN_GENERATIONS
|
protected static int |
STATE_FORCE_CLEAN_STORED
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
CacheSweeper()
|
Method Summary | |
protected abstract long |
collectCached(CacheGeneration generation,
long bytes,
boolean check)
collect the existing resources |
protected abstract long |
collectCached(long bytes,
boolean check)
collect the existing resources |
protected abstract void |
collectStored()
collect the still stored resources (disk) in the whole cache |
protected abstract void |
collectStored(CacheGeneration generation)
collect the still stored resources (disk) |
abstract void |
initialize(CacheFilter filter)
initialize the sweeper |
protected abstract void |
setState(int state)
change the state of the Sweeper |
abstract void |
signal()
Used to trigger a signal |
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, run, 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 |
protected static final int STATE_CLEAN_STORED
protected static final int STATE_FORCE_CLEAN_STORED
protected static final int STATE_CLEAN_GENERATIONS
protected static final int STATE_FORCE_CLEAN_GENERATIONS
Constructor Detail |
public CacheSweeper()
Method Detail |
public abstract void signal()
protected abstract void setState(int state)
protected abstract void collectStored(CacheGeneration generation)
protected abstract void collectStored()
protected abstract long collectCached(CacheGeneration generation, long bytes, boolean check)
protected abstract long collectCached(long bytes, boolean check)
public abstract void initialize(CacheFilter filter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |