|
|||||||||
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
public abstract class CacheSweeper
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
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, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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)
an
- integer, setting the new cache stateprotected abstract void collectStored(CacheGeneration generation)
generation,
- the CacheGeneration to cleanprotected abstract void collectStored()
protected abstract long collectCached(CacheGeneration generation, long bytes, boolean check)
generation,
- the CacheGeneration to cleanbytes,
- a long. The number of bytes to collectcheck,
- a boolean. If true, then only the stale resources
will be removed
protected abstract long collectCached(long bytes, boolean check)
bytes,
- a long. The number of bytes to collectcheck,
- a boolean. If true, then only the stale resources
will be removed
public abstract void initialize(CacheFilter filter)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |