org.apache.jcs.auxiliary.disk.file
Class FileDiskCacheAttributes

java.lang.Object
  extended by org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
      extended by org.apache.jcs.auxiliary.disk.AbstractDiskCacheAttributes
          extended by 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

Field Summary
static int DEFAULT_MAX_NUMBER_OF_FILES
          Default file count limit: -1 means no limit
static int DEFAULT_MAX_RETRIES_ON_DELETE
          Default limit on the number of times we will retry a delete.
static int DEFAULT_MAX_RETRIES_ON_TOUCH
          Default limit on the number of times we will retry a delete.
static boolean DEFAULT_TOUCH_ON_GET
          Default touch rule.
 
Fields inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCacheAttributes
diskPath, maxPurgatorySize, shutdownSpoolTimeLimit
 
Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
cacheName, eventQueuePoolName, eventQueueType, name
 
Fields inherited from interface org.apache.jcs.auxiliary.disk.behavior.IDiskCacheAttributes
MAX_PURGATORY_SIZE_DEFUALT
 
Fields inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes
POOLED_QUEUE_TYPE, SINGLE_QUEUE_TYPE
 
Constructor Summary
FileDiskCacheAttributes()
           
 
Method Summary
 AuxiliaryCacheAttributes copy()
          Returns a copy of the attributes.
 int getMaxNumberOfFiles()
           
 int getMaxRetriesOnDelete()
           
 int getMaxRetriesOnTouch()
           
 boolean isTouchOnGet()
           
 void setMaxNumberOfFiles(int maxNumberOfFiles)
           
 void setMaxRetriesOnDelete(int maxRetriesOnDelete)
           
 void setMaxRetriesOnTouch(int maxRetriesOnTouch)
           
 void setTouchOnGet(boolean touchOnGet)
           
 String toString()
          Write out the values for debugging purposes.
 
Methods inherited from class org.apache.jcs.auxiliary.disk.AbstractDiskCacheAttributes
getDiskPath, getMaxPurgatorySize, getShutdownSpoolTimeLimit, isAllowRemoveAll, setAllowRemoveAll, setDiskPath, setMaxPurgatorySize, setShutdownSpoolTimeLimit
 
Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes
getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
 

Field Detail

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
Constructor Detail

FileDiskCacheAttributes

public FileDiskCacheAttributes()
Method Detail

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.