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:
- java.io.Serializable, java.lang.Cloneable, AuxiliaryCacheAttributes, IDiskCacheAttributes
public class BlockDiskCacheAttributes
- extends AbstractDiskCacheAttributes
This holds attributes for Block Disk Cache configuration.
- Author:
- Aaron Smuts
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 java.lang.String toString()
- Write out the values for debugging purposes.
- Overrides:
toString
in class AbstractDiskCacheAttributes
- Returns:
- String
Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.