|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jcs.auxiliary.disk.jdbc.ShrinkerThread
public class ShrinkerThread
Calls delete expired on the disk caches. The shrinker is run by a clock daemon. The shrinker calls delete on each region. It pauses between calls.
Constructor Summary | |
---|---|
protected |
ShrinkerThread()
Does nothing special. |
Method Summary | |
---|---|
void |
addDiskCacheToShrinkList(JDBCDiskCache diskCache)
Adds a JDBC disk cache to the set of disk cache to shrink. |
long |
getPauseBetweenRegionCallsMillis()
How long should we wait between calls to deleteExpired when we are iterating through the list of regions. |
void |
run()
Calls deleteExpired on each item in the set. |
void |
setPauseBetweenRegionCallsMillis(long pauseBetweenRegionCallsMillis)
How long should we wait between calls to deleteExpired when we are iterating through the list of regions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected ShrinkerThread()
Method Detail |
---|
public void addDiskCacheToShrinkList(JDBCDiskCache diskCache)
diskCache
- public void run()
run
in interface Runnable
public void setPauseBetweenRegionCallsMillis(long pauseBetweenRegionCallsMillis)
pauseBetweenRegionCallsMillis
- The pauseBetweenRegionCallsMillis to set.public long getPauseBetweenRegionCallsMillis()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |