Interface IDiskCacheAttributes
- All Superinterfaces:
- AuxiliaryCacheAttributes,- Cloneable,- Serializable
- All Known Implementing Classes:
- AbstractDiskCacheAttributes,- BlockDiskCacheAttributes,- IndexedDiskCacheAttributes,- JDBCDiskCacheAttributes,- MySQLDiskCacheAttributes
Common disk cache attributes.
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intThis is the default purgatory size limit.
- 
Method SummaryModifier and TypeMethodDescriptionGets the diskPath attribute of the attributes objectintGets the maxKeySize attribute of the DiskCacheAttributes objectintGet the amount of time in seconds we will wait for elements to move to disk during shutdown for a particular region.booleanIf this is true then remove all is not prohibited.voidsetAllowRemoveAll(boolean allowRemoveAll) If this is false, then remove all requests will not be honored.voidsetDiskLimitType(IDiskCacheAttributes.DiskLimitType diskLimitType) set the type of the limit of the cache sizevoidsetDiskLimitTypeName(String diskLimitTypeName) Translates and stores String values of DiskLimitType Allowed values: "COUNT" and "SIZE"voidsetDiskPath(String path) Sets the diskPath attribute of the IJISPCacheAttributes objectvoidsetMaxPurgatorySize(int maxPurgatorySize) Sets the maxPurgatorySize attribute of the DiskCacheAttributes objectvoidsetShutdownSpoolTimeLimit(int shutdownSpoolTimeLimit) Sets the amount of time in seconds we will wait for elements to move to disk during shutdown for a particular region.Methods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributesclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
- 
Field Details- 
MAX_PURGATORY_SIZE_DEFAULTThis is the default purgatory size limit. Purgatory is the area where items to be spooled are temporarily stored. It basically provides access to items on the to-be-spooled queue.- See Also:
 
 
- 
- 
Method Details- 
setDiskPathSets the diskPath attribute of the IJISPCacheAttributes object- Parameters:
- path- The new diskPath value
 
- 
getDiskPathGets the diskPath attribute of the attributes object- Returns:
- The diskPath value
 
- 
getMaxPurgatorySizeint getMaxPurgatorySize()Gets the maxKeySize attribute of the DiskCacheAttributes object- Returns:
- The maxPurgatorySize value
 
- 
setMaxPurgatorySizeSets the maxPurgatorySize attribute of the DiskCacheAttributes object- Parameters:
- maxPurgatorySize- The new maxPurgatorySize value
 
- 
getShutdownSpoolTimeLimitGet the amount of time in seconds we will wait for elements to move to disk during shutdown for a particular region.- Returns:
- the time in seconds.
 
- 
setShutdownSpoolTimeLimitSets the amount of time in seconds we will wait for elements to move to disk during shutdown for a particular region.This is how long we give the event queue to empty. The default is 60 seconds. - Parameters:
- shutdownSpoolTimeLimit- the time in seconds
 
- 
isAllowRemoveAllboolean isAllowRemoveAll()If this is true then remove all is not prohibited.- Returns:
- boolean
 
- 
setAllowRemoveAllIf this is false, then remove all requests will not be honored.This provides a safety mechanism for the persistent store. - Parameters:
- allowRemoveAll-
 
- 
setDiskLimitTypeset the type of the limit of the cache size- Parameters:
- diskLimitType- COUNT - limit by count of the elements, SIZE, limit by sum of element's size
 
- 
setDiskLimitTypeNameTranslates and stores String values of DiskLimitType Allowed values: "COUNT" and "SIZE"- Parameters:
- diskLimitTypeName-
 
- 
getDiskLimitType- Returns:
- active DiskLimitType
 
 
-