| java.lang.Object java.lang.Thread org.w3c.www.protocol.http.cache.CacheSweeper org.w3c.www.protocol.http.cache.SimpleCacheSweeper
Field Summary | |
protected int | state |
state | protected int state(Code) | | |
collectCached | protected long collectCached(CacheGeneration generation, long bytes, boolean check)(Code) | | collect the existing resources
generation, the CacheGeneration to clean bytes, a long. The number of bytes to collect check, a boolean. If true, then only the stale resourceswill be removed |
collectCached | protected long collectCached(long bytes, boolean check)(Code) | | collect the existing resources
bytes, a long. The number of bytes to collect check, a boolean. If true, then only the stale resourceswill be removed a long, the number of collected bytes |
collectStored | protected void collectStored(CacheGeneration generation)(Code) | | collect the still stored resources
generation, the CacheGeneration to clean |
collectStored | protected void collectStored()(Code) | | collect the still stored resources
in the whole cache
It will NOT block the cache during the process
|
garbageCollect | public void garbageCollect()(Code) | | Run the garbage collector.
|
setState | protected synchronized void setState(int state)(Code) | | change the state of the Sweeper
Parameters: an - integer, setting the new cache state |
signal | public synchronized void signal()(Code) | | Used to trigger a signal
|
waitSignal | public synchronized void waitSignal()(Code) | | |
Fields inherited from org.w3c.www.protocol.http.cache.CacheSweeper | final protected static int STATE_CLEAN_GENERATIONS(Code)(Java Doc) final protected static int STATE_CLEAN_STORED(Code)(Java Doc) final protected static int STATE_FORCE_CLEAN_GENERATIONS(Code)(Java Doc) final protected static int STATE_FORCE_CLEAN_STORED(Code)(Java Doc)
|
|
|