Class IndexedDiskCacheAttributes
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.commons.jcs3.auxiliary.disk.AbstractDiskCacheAttributes
org.apache.commons.jcs3.auxiliary.disk.indexed.IndexedDiskCacheAttributes
- All Implemented Interfaces:
Serializable,Cloneable,AuxiliaryCacheAttributes,IDiskCacheAttributes
Configuration class for the Indexed Disk Cache
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.commons.jcs3.auxiliary.disk.behavior.IDiskCacheAttributes
IDiskCacheAttributes.DiskLimitType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final booleanShould we clear the disk on startup.static final booleanShould we optimize on shutdown.Fields inherited from interface org.apache.commons.jcs3.auxiliary.disk.behavior.IDiskCacheAttributes
MAX_PURGATORY_SIZE_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the maxKeySize attribute of the DiskCacheAttributes objectintGets the optimizeAtRemoveCount attribute of the DiskCacheAttributes objectbooleanbooleanvoidsetClearDiskOnStartup(boolean clearDiskOnStartup) voidsetMaxKeySize(int maxKeySize) Sets the maxKeySize attribute of the DiskCacheAttributes objectvoidsetOptimizeAtRemoveCount(int cnt) Sets the optimizeAtRemoveCount attribute of the DiskCacheAttributes object This number determines how often the disk cache should run real time optimizations.voidsetOptimizeOnShutdown(boolean optimizeOnShutdown) toString()Write out the values for debugging purposes.Methods inherited from class org.apache.commons.jcs3.auxiliary.disk.AbstractDiskCacheAttributes
getDiskLimitType, getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskLimitType, setDiskLimitTypeName, setDiskPath, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimitMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
-
Field Details
-
DEFAULT_OPTIMIZE_ON_SHUTDOWN
Should we optimize on shutdown.- See Also:
-
DEFAULT_CLEAR_DISK_ON_STARTUP
Should we clear the disk on startup.- See Also:
-
-
Constructor Details
-
IndexedDiskCacheAttributes
public IndexedDiskCacheAttributes()Constructor for the DiskCacheAttributes object
-
-
Method Details
-
getMaxKeySize
Gets the maxKeySize attribute of the DiskCacheAttributes object- Returns:
- The maxKeySize value
-
setMaxKeySize
Sets the maxKeySize attribute of the DiskCacheAttributes object- Parameters:
maxKeySize- The new maxKeySize value
-
getOptimizeAtRemoveCount
Gets the optimizeAtRemoveCount attribute of the DiskCacheAttributes object- Returns:
- The optimizeAtRemoveCount value
-
setOptimizeAtRemoveCount
Sets the optimizeAtRemoveCount attribute of the DiskCacheAttributes object This number determines how often the disk cache should run real time optimizations.- Parameters:
cnt- The new optimizeAtRemoveCount value
-
setOptimizeOnShutdown
- Parameters:
optimizeOnShutdown- The optimizeOnShutdown to set.
-
isOptimizeOnShutdown
- Returns:
- Returns the optimizeOnShutdown.
-
setClearDiskOnStartup
- Parameters:
clearDiskOnStartup- the clearDiskOnStartup to set
-
isClearDiskOnStartup
- Returns:
- the clearDiskOnStartup
-
toString
Write out the values for debugging purposes.- Overrides:
toStringin classAbstractDiskCacheAttributes- Returns:
- String
-