Class BlockDiskCacheAttributes
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.commons.jcs3.auxiliary.disk.AbstractDiskCacheAttributes
org.apache.commons.jcs3.auxiliary.disk.block.BlockDiskCacheAttributes
- All Implemented Interfaces:
Serializable
,Cloneable
,AuxiliaryCacheAttributes
,IDiskCacheAttributes
This holds attributes for Block Disk Cache configuration.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.commons.jcs3.auxiliary.disk.behavior.IDiskCacheAttributes
IDiskCacheAttributes.DiskLimitType
-
Field Summary
Fields inherited from interface org.apache.commons.jcs3.auxiliary.disk.behavior.IDiskCacheAttributes
MAX_PURGATORY_SIZE_DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
long
int
void
setBlockSizeBytes
(int blockSizeBytes) The size of the blocks.void
setKeyPersistenceIntervalSeconds
(long keyPersistenceIntervalSeconds) void
setMaxKeySize
(int maxKeySize) 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
-
Constructor Details
-
BlockDiskCacheAttributes
public BlockDiskCacheAttributes()
-
-
Method Details
-
setBlockSizeBytes
The size of the blocks. All blocks are the same size.- Parameters:
blockSizeBytes
- The blockSizeBytes to set.
-
getBlockSizeBytes
- Returns:
- Returns the blockSizeBytes.
-
setMaxKeySize
- Parameters:
maxKeySize
- The maxKeySize to set.
-
getMaxKeySize
- Returns:
- Returns the maxKeySize.
-
setKeyPersistenceIntervalSeconds
- Parameters:
keyPersistenceIntervalSeconds
- The keyPersistenceIntervalSeconds to set.
-
getKeyPersistenceIntervalSeconds
- Returns:
- Returns the keyPersistenceIntervalSeconds.
-
toString
Write out the values for debugging purposes.- Overrides:
toString
in classAbstractDiskCacheAttributes
- Returns:
- String
-