|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--org.w3c.www.protocol.http.cache.CacheSweeper
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
| Constructor Summary | |
CacheSweeper(CacheFilter filter)
|
|
| Method Summary | |
boolean |
checkInvalid(CachedResource r,
int mingen)
Should the given resource stay in the cache now. |
void |
garbageCollect()
Run the garbage collector. |
void |
run()
|
void |
signal()
|
protected void |
updateGeneration(CachedResource resource,
int from,
int to)
Move the given resource from one generation to another. |
void |
waitSignal()
|
| Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
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 |
| Constructor Detail |
public CacheSweeper(CacheFilter filter)
| Method Detail |
public void signal()
public void waitSignal()
public boolean checkInvalid(CachedResource r,
int mingen)
r - The resource to check.mingen - The recommended generation for that resource to stay in.
protected void updateGeneration(CachedResource resource,
int from,
int to)
resource - The cached resource whose generation is about to change.from - The from generation.to - The to generation.public void garbageCollect()
public void run()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||