public class IndexedDiskCacheAttributes extends AbstractDiskCacheAttributes
IDiskCacheAttributes.DiskLimitType
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 |
---|---|
int |
getMaxKeySize()
Gets the maxKeySize attribute of the DiskCacheAttributes object
|
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 |
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.
|
getDiskLimitType, getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskLimitType, setDiskLimitTypeName, setDiskPath, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimit
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone, 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 setOptimizeOnShutdown(boolean optimizeOnShutdown)
optimizeOnShutdown
- The optimizeOnShutdown to set.public boolean isOptimizeOnShutdown()
public void setClearDiskOnStartup(boolean clearDiskOnStartup)
clearDiskOnStartup
- the clearDiskOnStartup to setpublic boolean isClearDiskOnStartup()
public String toString()
toString
in class AbstractDiskCacheAttributes
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.