org.apache.jcs.auxiliary.disk.file
Class FileDiskCacheAttributes
java.lang.Object
org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.jcs.auxiliary.disk.AbstractDiskCacheAttributes
org.apache.jcs.auxiliary.disk.file.FileDiskCacheAttributes
- All Implemented Interfaces:
- Serializable, Cloneable, AuxiliaryCacheAttributes, IDiskCacheAttributes
public class FileDiskCacheAttributes
- extends AbstractDiskCacheAttributes
Configuration values for the file disk cache.
- See Also:
- Serialized Form
DEFAULT_MAX_NUMBER_OF_FILES
public static final int DEFAULT_MAX_NUMBER_OF_FILES
- Default file count limit: -1 means no limit
- See Also:
- Constant Field Values
DEFAULT_MAX_RETRIES_ON_DELETE
public static final int DEFAULT_MAX_RETRIES_ON_DELETE
- Default limit on the number of times we will retry a delete.
- See Also:
- Constant Field Values
DEFAULT_TOUCH_ON_GET
public static final boolean DEFAULT_TOUCH_ON_GET
- Default touch rule.
- See Also:
- Constant Field Values
DEFAULT_MAX_RETRIES_ON_TOUCH
public static final int DEFAULT_MAX_RETRIES_ON_TOUCH
- Default limit on the number of times we will retry a delete.
- See Also:
- Constant Field Values
FileDiskCacheAttributes
public FileDiskCacheAttributes()
copy
public AuxiliaryCacheAttributes copy()
- Returns a copy of the attributes.
- Specified by:
copy
in interface AuxiliaryCacheAttributes
- Overrides:
copy
in class AbstractDiskCacheAttributes
- Returns:
- AuxiliaryCacheAttributes
setMaxNumberOfFiles
public void setMaxNumberOfFiles(int maxNumberOfFiles)
- Parameters:
maxNumberOfFiles
- the maxNumberOfFiles to set
getMaxNumberOfFiles
public int getMaxNumberOfFiles()
- Returns:
- the maxNumberOfFiles
setMaxRetriesOnDelete
public void setMaxRetriesOnDelete(int maxRetriesOnDelete)
- Parameters:
maxRetriesOnDelete
- the maxRetriesOnDelete to set
getMaxRetriesOnDelete
public int getMaxRetriesOnDelete()
- Returns:
- the maxRetriesOnDelete
setTouchOnGet
public void setTouchOnGet(boolean touchOnGet)
- Parameters:
touchOnGet
- the touchOnGet to set
isTouchOnGet
public boolean isTouchOnGet()
- Returns:
- the touchOnGet
setMaxRetriesOnTouch
public void setMaxRetriesOnTouch(int maxRetriesOnTouch)
- Parameters:
maxRetriesOnTouch
- the maxRetriesOnTouch to set
getMaxRetriesOnTouch
public int getMaxRetriesOnTouch()
- Returns:
- the maxRetriesOnTouch
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.