org.apache.jcs.engine
Class CompositeCacheAttributes

java.lang.Object
  extended byorg.apache.jcs.engine.CompositeCacheAttributes
All Implemented Interfaces:
java.lang.Cloneable, ICompositeCacheAttributes, java.io.Serializable

public class CompositeCacheAttributes
extends java.lang.Object
implements ICompositeCacheAttributes, java.lang.Cloneable

Description of the Class

See Also:
Serialized Form

Field Summary
protected  long maxMemoryIdleTimeSeconds
          maxMemoryIdleTimeSeconds
protected  int maxSpoolPerRun
           
protected  long shrinkerIntervalSeconds
          shrinkerIntervalSeconds
 
Constructor Summary
CompositeCacheAttributes()
          Constructor for the CompositeCacheAttributes object
 
Method Summary
 ICompositeCacheAttributes copy()
          Description of the Method
 java.lang.String getCacheName()
          Gets the cacheName attribute of the CompositeCacheAttributes object
 long getMaxMemoryIdleTimeSeconds()
          If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.
 int getMaxObjects()
          Gets the maxObjects attribute of the CompositeCacheAttributes object
 int getMaxSpoolPerRun()
          If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.
 java.lang.String getMemoryCacheName()
          Gets the memoryCacheName attribute of the CompositeCacheAttributes object
 long getShrinkerIntervalSeconds()
          If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.
 boolean getUseDisk()
          Gets the useDisk attribute of the CompositeCacheAttributes object
 boolean getUseLateral()
          Gets the useLateral attribute of the CompositeCacheAttributes object
 boolean getUseMemoryShrinker()
          Whether the memory cache should perform background memory shrinkage.
 boolean getUseRemote()
          Gets the useRemote attribute of the CompositeCacheAttributes object
 void setCacheName(java.lang.String s)
          Sets the cacheName attribute of the CompositeCacheAttributes object
 void setMaxMemoryIdleTimeSeconds(long seconds)
          If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.
 void setMaxObjects(int maxObjs)
          Sets the maxObjects attribute of the CompositeCacheAttributes object
 void setMaxSpoolPerRun(int maxSpoolPerRun)
          If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.
 void setMemoryCacheName(java.lang.String s)
          Sets the memoryCacheName attribute of the CompositeCacheAttributes object
 void setShrinkerIntervalSeconds(long seconds)
          If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.
 void setUseDisk(boolean useDisk)
          Sets the useDisk attribute of the CompositeCacheAttributes object
 void setUseLateral(boolean b)
          Sets the useLateral attribute of the CompositeCacheAttributes object
 void setUseMemoryShrinker(boolean useShrinker)
          Whether the memory cache should perform background memory shrinkage.
 void setUseRemote(boolean useRemote)
          Sets the useRemote attribute of the CompositeCacheAttributes object
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

maxMemoryIdleTimeSeconds

protected long maxMemoryIdleTimeSeconds
maxMemoryIdleTimeSeconds


shrinkerIntervalSeconds

protected long shrinkerIntervalSeconds
shrinkerIntervalSeconds


maxSpoolPerRun

protected int maxSpoolPerRun
Constructor Detail

CompositeCacheAttributes

public CompositeCacheAttributes()
Constructor for the CompositeCacheAttributes object

Method Detail

setMaxObjects

public void setMaxObjects(int maxObjs)
Sets the maxObjects attribute of the CompositeCacheAttributes object

Specified by:
setMaxObjects in interface ICompositeCacheAttributes
Parameters:
maxObjs - The new maxObjects value

getMaxObjects

public int getMaxObjects()
Gets the maxObjects attribute of the CompositeCacheAttributes object

Specified by:
getMaxObjects in interface ICompositeCacheAttributes
Returns:
The maxObjects value

setUseDisk

public void setUseDisk(boolean useDisk)
Sets the useDisk attribute of the CompositeCacheAttributes object

Specified by:
setUseDisk in interface ICompositeCacheAttributes
Parameters:
useDisk - The new useDisk value

getUseDisk

public boolean getUseDisk()
Gets the useDisk attribute of the CompositeCacheAttributes object

Specified by:
getUseDisk in interface ICompositeCacheAttributes
Returns:
The useDisk value

setUseLateral

public void setUseLateral(boolean b)
Sets the useLateral attribute of the CompositeCacheAttributes object

Specified by:
setUseLateral in interface ICompositeCacheAttributes
Parameters:
b - The new useLateral value

getUseLateral

public boolean getUseLateral()
Gets the useLateral attribute of the CompositeCacheAttributes object

Specified by:
getUseLateral in interface ICompositeCacheAttributes
Returns:
The useLateral value

setUseRemote

public void setUseRemote(boolean useRemote)
Sets the useRemote attribute of the CompositeCacheAttributes object

Specified by:
setUseRemote in interface ICompositeCacheAttributes
Parameters:
useRemote - The new useRemote value

getUseRemote

public boolean getUseRemote()
Gets the useRemote attribute of the CompositeCacheAttributes object

Specified by:
getUseRemote in interface ICompositeCacheAttributes
Returns:
The useRemote value

setCacheName

public void setCacheName(java.lang.String s)
Sets the cacheName attribute of the CompositeCacheAttributes object

Specified by:
setCacheName in interface ICompositeCacheAttributes
Parameters:
s - The new cacheName value

getCacheName

public java.lang.String getCacheName()
Gets the cacheName attribute of the CompositeCacheAttributes object

Specified by:
getCacheName in interface ICompositeCacheAttributes
Returns:
The cacheName value

setMemoryCacheName

public void setMemoryCacheName(java.lang.String s)
Sets the memoryCacheName attribute of the CompositeCacheAttributes object

Specified by:
setMemoryCacheName in interface ICompositeCacheAttributes
Parameters:
s - The new memoryCacheName value

getMemoryCacheName

public java.lang.String getMemoryCacheName()
Gets the memoryCacheName attribute of the CompositeCacheAttributes object

Specified by:
getMemoryCacheName in interface ICompositeCacheAttributes
Returns:
The memoryCacheName value

setUseMemoryShrinker

public void setUseMemoryShrinker(boolean useShrinker)
Whether the memory cache should perform background memory shrinkage.

Specified by:
setUseMemoryShrinker in interface ICompositeCacheAttributes
Parameters:
useShrinker - The new UseMemoryShrinker value

getUseMemoryShrinker

public boolean getUseMemoryShrinker()
Whether the memory cache should perform background memory shrinkage.

Specified by:
getUseMemoryShrinker in interface ICompositeCacheAttributes
Returns:
The UseMemoryShrinker value

setMaxMemoryIdleTimeSeconds

public void setMaxMemoryIdleTimeSeconds(long seconds)
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.

Specified by:
setMaxMemoryIdleTimeSeconds in interface ICompositeCacheAttributes
Parameters:
seconds - The new MaxMemoryIdleTimeSeconds value

getMaxMemoryIdleTimeSeconds

public long getMaxMemoryIdleTimeSeconds()
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space.

Specified by:
getMaxMemoryIdleTimeSeconds in interface ICompositeCacheAttributes
Returns:
The MaxMemoryIdleTimeSeconds value

setShrinkerIntervalSeconds

public void setShrinkerIntervalSeconds(long seconds)
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. This sets the shrinker interval.

Specified by:
setShrinkerIntervalSeconds in interface ICompositeCacheAttributes
Parameters:
seconds - The new ShrinkerIntervalSeconds value

getShrinkerIntervalSeconds

public long getShrinkerIntervalSeconds()
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. This gets the shrinker interval.

Specified by:
getShrinkerIntervalSeconds in interface ICompositeCacheAttributes
Returns:
The ShrinkerIntervalSeconds value

setMaxSpoolPerRun

public void setMaxSpoolPerRun(int maxSpoolPerRun)
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. This sets the maximum number of items to spool per run. If the value is -1, then there is no limit to the number of items to be spooled.

Specified by:
setMaxSpoolPerRun in interface ICompositeCacheAttributes

getMaxSpoolPerRun

public int getMaxSpoolPerRun()
If UseMemoryShrinker is true the memory cache should auto-expire elements to reclaim space. This gets the maximum number of items to spool per run.

Specified by:
getMaxSpoolPerRun in interface ICompositeCacheAttributes
Returns:
The maxSpoolPerRun value

copy

public ICompositeCacheAttributes copy()
Description of the Method

Specified by:
copy in interface ICompositeCacheAttributes
Returns:

toString

public java.lang.String toString()
Description of the Method

Returns:


Copyright © 2002-2005 Apache Software Foundation. All Rights Reserved.