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 boolean
Should we clear the disk on startup.static final boolean
Should 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 TypeMethodDescriptionint
Gets the maxKeySize attribute of the DiskCacheAttributes objectint
Gets the optimizeAtRemoveCount attribute of the DiskCacheAttributes objectboolean
boolean
void
setClearDiskOnStartup
(boolean clearDiskOnStartup) void
setMaxKeySize
(int maxKeySize) Sets the maxKeySize attribute of the DiskCacheAttributes objectvoid
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) 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, setShutdownSpoolTimeLimit
Methods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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:
toString
in classAbstractDiskCacheAttributes
- Returns:
- String
-