org.apache.jcs.auxiliary.disk.block
Class BlockDiskCacheAttributes
java.lang.Object
org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.jcs.auxiliary.disk.AbstractDiskCacheAttributes
org.apache.jcs.auxiliary.disk.block.BlockDiskCacheAttributes
- All Implemented Interfaces:
- Serializable, Cloneable, AuxiliaryCacheAttributes, IDiskCacheAttributes
public class BlockDiskCacheAttributes
- extends AbstractDiskCacheAttributes
This holds attributes for Block Disk Cache configuration.
- Author:
- Aaron Smuts
- See Also:
- Serialized Form
BlockDiskCacheAttributes
public BlockDiskCacheAttributes()
setBlockSizeBytes
public void setBlockSizeBytes(int blockSizeBytes)
- The size of the blocks. All blocks are the same size.
- Parameters:
blockSizeBytes
- The blockSizeBytes to set.
getBlockSizeBytes
public int getBlockSizeBytes()
- Returns:
- Returns the blockSizeBytes.
setMaxKeySize
public void setMaxKeySize(int maxKeySize)
- Parameters:
maxKeySize
- The maxKeySize to set.
getMaxKeySize
public int getMaxKeySize()
- Returns:
- Returns the maxKeySize.
setKeyPersistenceIntervalSeconds
public void setKeyPersistenceIntervalSeconds(long keyPersistenceIntervalSeconds)
- Parameters:
keyPersistenceIntervalSeconds
- The keyPersistenceIntervalSeconds to set.
getKeyPersistenceIntervalSeconds
public long getKeyPersistenceIntervalSeconds()
- Returns:
- Returns the keyPersistenceIntervalSeconds.
toString
public String toString()
- Write out the values for debugging purposes.
- Overrides:
toString
in class AbstractDiskCacheAttributes
- Returns:
- String
Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.