Class ShrinkerThread
java.lang.Object
org.apache.commons.jcs3.auxiliary.disk.jdbc.ShrinkerThread
- All Implemented Interfaces:
- Runnable
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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddDiskCacheToShrinkList(JDBCDiskCache<?, ?> diskCache) Adds a JDBC disk cache to the set of disk cache to shrink.longHow long should we wait between calls to deleteExpired when we are iterating through the list of regions.voidrun()Calls deleteExpired on each item in the set.voidsetPauseBetweenRegionCallsMillis(long pauseBetweenRegionCallsMillis) How long should we wait between calls to deleteExpired when we are iterating through the list of regions.
- 
Constructor Details- 
ShrinkerThreadprotected ShrinkerThread()Does nothing special.
 
- 
- 
Method Details- 
addDiskCacheToShrinkListAdds a JDBC disk cache to the set of disk cache to shrink.- Parameters:
- diskCache-
 
- 
runCalls deleteExpired on each item in the set. It pauses between each call.
- 
setPauseBetweenRegionCallsMillisHow long should we wait between calls to deleteExpired when we are iterating through the list of regions.- Parameters:
- pauseBetweenRegionCallsMillis- The pauseBetweenRegionCallsMillis to set.
 
- 
getPauseBetweenRegionCallsMillisHow long should we wait between calls to deleteExpired when we are iterating through the list of regions.- Returns:
- Returns the pauseBetweenRegionCallsMillis.
 
 
-