public interface IDiskCacheAttributes extends AuxiliaryCacheAttributes
Modifier and Type | Interface and Description |
---|---|
static class |
IDiskCacheAttributes.DiskLimitType |
Modifier and Type | Field and Description |
---|---|
static int |
MAX_PURGATORY_SIZE_DEFAULT
This is the default purgatory size limit.
|
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(String path)
Sets the diskPath attribute of the IJISPCacheAttributes 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.
|
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
static final int MAX_PURGATORY_SIZE_DEFAULT
void setDiskPath(String path)
path
- The new diskPath valueFile getDiskPath()
int getMaxPurgatorySize()
void setMaxPurgatorySize(int maxPurgatorySize)
maxPurgatorySize
- The new maxPurgatorySize valueint getShutdownSpoolTimeLimit()
void setShutdownSpoolTimeLimit(int shutdownSpoolTimeLimit)
This is how long we give the event queue to empty.
The default is 60 seconds.
shutdownSpoolTimeLimit
- the time in secondsboolean isAllowRemoveAll()
void setAllowRemoveAll(boolean allowRemoveAll)
This provides a safety mechanism for the persistent store.
allowRemoveAll
- void setDiskLimitType(IDiskCacheAttributes.DiskLimitType diskLimitType)
diskLimitType
- COUNT - limit by count of the elements, SIZE, limit by sum of element's sizevoid setDiskLimitTypeName(String diskLimitTypeName)
diskLimitTypeName
- IDiskCacheAttributes.DiskLimitType getDiskLimitType()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.