public class IndexedDiskCacheAttributes extends AbstractDiskCacheAttributes
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_CLEAR_DISK_ON_STARTUP
Should we clear the disk on startup.
|
static boolean |
DEFAULT_OPTIMIZE_ON_SHUTDOWN
Should we optimize on shutdown.
|
MAX_PURGATORY_SIZE_DEFAULT
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 |
isClearDiskOnStartup() |
boolean |
isOptimizeOnShutdown() |
void |
setClearDiskOnStartup(boolean clearDiskOnStartup) |
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) |
String |
toString()
Write out the values for debugging purposes.
|
getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskPath, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimit
getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
public static final boolean DEFAULT_OPTIMIZE_ON_SHUTDOWN
public static final boolean DEFAULT_CLEAR_DISK_ON_STARTUP
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 void setClearDiskOnStartup(boolean clearDiskOnStartup)
clearDiskOnStartup
- the clearDiskOnStartup to setpublic boolean isClearDiskOnStartup()
public AuxiliaryCacheAttributes copy()
copy
in interface AuxiliaryCacheAttributes
copy
in class AbstractDiskCacheAttributes
public String toString()
toString
in class AbstractDiskCacheAttributes
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.