public class IndexedDiskCacheAttributes extends AbstractDiskCacheAttributes
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_OPTIMIZE_ON_SHUTDOWN
Should we optimize on shutdown.
|
diskPath, maxPurgatorySize, shutdownSpoolTimeLimitcacheName, eventQueuePoolName, eventQueueType, nameMAX_PURGATORY_SIZE_DEFUALTPOOLED_QUEUE_TYPE, SINGLE_QUEUE_TYPE| Constructor and Description |
|---|
IndexedDiskCacheAttributes()
Constructor for the DiskCacheAttributes object
|
| Modifier and Type | Method and Description |
|---|---|
AuxiliaryCacheAttributes |
copy()
Returns a copy of the attributes.
|
int |
getMaxKeySize()
Gets the maxKeySize attribute of the DiskCacheAttributes object
|
int |
getMaxRecycleBinSize() |
int |
getOptimizeAtRemoveCount()
Gets the optimizeAtRemoveCount attribute of the DiskCacheAttributes
object
|
boolean |
isOptimizeOnShutdown() |
void |
setMaxKeySize(int maxKeySize)
Sets the maxKeySize attribute of the DiskCacheAttributes object
|
void |
setMaxRecycleBinSize(int maxRecycleBinSize)
This cannot be larger than the maxKeySize.
|
void |
setOptimizeAtRemoveCount(int cnt)
Sets the optimizeAtRemoveCount attribute of the DiskCacheAttributes
object This number determines how often the disk cache should run real
time optimizations.
|
void |
setOptimizeOnShutdown(boolean optimizeOnShutdown) |
java.lang.String |
toString()
Write out the values for debugging purposes.
|
getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimitgetCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNamepublic static final boolean DEFAULT_OPTIMIZE_ON_SHUTDOWN
public IndexedDiskCacheAttributes()
public int getMaxKeySize()
public void setMaxKeySize(int maxKeySize)
maxKeySize - The new maxKeySize valuepublic int getOptimizeAtRemoveCount()
public void setOptimizeAtRemoveCount(int cnt)
cnt - The new optimizeAtRemoveCount valuepublic void setMaxRecycleBinSize(int maxRecycleBinSize)
If the maxKeySize is -1 this will be set tot he default, which is 5000.
maxRecycleBinSize - The maxRecycleBinSize to set.public int getMaxRecycleBinSize()
public void setOptimizeOnShutdown(boolean optimizeOnShutdown)
optimizeOnShutdown - The optimizeOnShutdown to set.public boolean isOptimizeOnShutdown()
public AuxiliaryCacheAttributes copy()
copy in interface AuxiliaryCacheAttributescopy in class AbstractDiskCacheAttributespublic java.lang.String toString()
toString in class AbstractDiskCacheAttributesCopyright © 2002-2013 Apache Software Foundation. All Rights Reserved.