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 SummaryNested classes/interfaces inherited from interface org.apache.commons.jcs3.auxiliary.disk.behavior.IDiskCacheAttributesIDiskCacheAttributes.DiskLimitType
- 
Field SummaryFieldsModifier 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.IDiskCacheAttributesMAX_PURGATORY_SIZE_DEFAULT
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.AbstractDiskCacheAttributesgetDiskLimitType, getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskLimitType, setDiskLimitTypeName, setDiskPath, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimitMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributesclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameMethods inherited from class java.lang.Objectequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributesclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
- 
Field Details- 
DEFAULT_OPTIMIZE_ON_SHUTDOWNShould we optimize on shutdown.- See Also:
 
- 
DEFAULT_CLEAR_DISK_ON_STARTUPShould we clear the disk on startup.- See Also:
 
 
- 
- 
Constructor Details- 
IndexedDiskCacheAttributespublic IndexedDiskCacheAttributes()Constructor for the DiskCacheAttributes object
 
- 
- 
Method Details- 
getMaxKeySizeGets the maxKeySize attribute of the DiskCacheAttributes object- Returns:
- The maxKeySize value
 
- 
setMaxKeySizeSets the maxKeySize attribute of the DiskCacheAttributes object- Parameters:
- maxKeySize- The new maxKeySize value
 
- 
getOptimizeAtRemoveCountGets the optimizeAtRemoveCount attribute of the DiskCacheAttributes object- Returns:
- The optimizeAtRemoveCount value
 
- 
setOptimizeAtRemoveCountSets 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
 
- 
toStringWrite out the values for debugging purposes.- Overrides:
- toStringin class- AbstractDiskCacheAttributes
- Returns:
- String
 
 
-