public abstract class AbstractDiskCacheAttributes extends AbstractAuxiliaryCacheAttributes implements IDiskCacheAttributes
IDiskCacheAttributes.DiskLimitTypeMAX_PURGATORY_SIZE_DEFAULT| Constructor and Description |
|---|
AbstractDiskCacheAttributes() |
| Modifier and Type | Method and Description |
|---|---|
IDiskCacheAttributes.DiskLimitType |
getDiskLimitType() |
File |
getDiskPath()
Gets the diskPath attribute of the attributes object
|
int |
getMaxPurgatorySize()
Gets the maxKeySize attribute of the DiskCacheAttributes object
|
int |
getShutdownSpoolTimeLimit()
Get the amount of time in seconds we will wait for elements to move to disk during shutdown
for a particular region.
|
boolean |
isAllowRemoveAll()
If this is true then remove all is not prohibited.
|
void |
setAllowRemoveAll(boolean allowRemoveAll)
If this is false, then remove all requests will not be honored.
|
void |
setDiskLimitType(IDiskCacheAttributes.DiskLimitType diskLimitType)
set the type of the limit of the cache size
|
void |
setDiskLimitTypeName(String diskLimitTypeName)
Translates and stores String values of DiskLimitType
Allowed values: "COUNT" and "SIZE"
|
void |
setDiskPath(File diskPath)
Sets the diskPath attribute of the DiskCacheAttributes object
|
void |
setDiskPath(String path)
Sets the diskPath attribute of the DiskCacheAttributes object
|
void |
setMaxPurgatorySize(int maxPurgatorySize)
Sets the maxPurgatorySize attribute of the DiskCacheAttributes object
|
void |
setShutdownSpoolTimeLimit(int shutdownSpoolTimeLimit)
Sets the amount of time in seconds we will wait for elements to move to disk during shutdown
for a particular region.
|
String |
toString()
Includes the common attributes for a debug message.
|
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNamepublic void setDiskPath(String path)
setDiskPath in interface IDiskCacheAttributespath - The new diskPath valuepublic void setDiskPath(File diskPath)
diskPath - The new diskPath valuepublic File getDiskPath()
getDiskPath in interface IDiskCacheAttributespublic int getMaxPurgatorySize()
getMaxPurgatorySize in interface IDiskCacheAttributespublic void setMaxPurgatorySize(int maxPurgatorySize)
setMaxPurgatorySize in interface IDiskCacheAttributesmaxPurgatorySize - The new maxPurgatorySize valuepublic int getShutdownSpoolTimeLimit()
getShutdownSpoolTimeLimit in interface IDiskCacheAttributespublic void setShutdownSpoolTimeLimit(int shutdownSpoolTimeLimit)
This is how long we give the event queue to empty.
The default is 60 seconds.
setShutdownSpoolTimeLimit in interface IDiskCacheAttributesshutdownSpoolTimeLimit - the time in secondspublic void setAllowRemoveAll(boolean allowRemoveAll)
IDiskCacheAttributesThis provides a safety mechanism for the persistent store.
setAllowRemoveAll in interface IDiskCacheAttributesallowRemoveAll - The allowRemoveAll to set.public boolean isAllowRemoveAll()
IDiskCacheAttributesisAllowRemoveAll in interface IDiskCacheAttributespublic String toString()
public void setDiskLimitType(IDiskCacheAttributes.DiskLimitType diskLimitType)
IDiskCacheAttributessetDiskLimitType in interface IDiskCacheAttributesdiskLimitType - COUNT - limit by count of the elements, SIZE, limit by sum of element's sizepublic void setDiskLimitTypeName(String diskLimitTypeName)
IDiskCacheAttributessetDiskLimitTypeName in interface IDiskCacheAttributespublic IDiskCacheAttributes.DiskLimitType getDiskLimitType()
getDiskLimitType in interface IDiskCacheAttributesCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.