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

Author:
asmuts
See Also:
Serialized Form

Field Summary
private  java.lang.String cacheName
           
protected  long maxMemoryIdleTimeSeconds
          maxMemoryIdleTimeSeconds
private  int maxObjs
           
private  java.lang.String memoryCacheName
           
protected  long shrinkerIntervalSeconds
          shrinkerIntervalSeconds
private  boolean useDisk
           
private  boolean useLateral
           
private  boolean useMemoryShrinker
           
private  boolean useRemote
           
 
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
 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 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

useLateral

private boolean useLateral

useRemote

private boolean useRemote

useDisk

private boolean useDisk

useMemoryShrinker

private boolean useMemoryShrinker

maxObjs

private int maxObjs

maxMemoryIdleTimeSeconds

protected long maxMemoryIdleTimeSeconds
maxMemoryIdleTimeSeconds


shrinkerIntervalSeconds

protected long shrinkerIntervalSeconds
shrinkerIntervalSeconds


cacheName

private java.lang.String cacheName

memoryCacheName

private java.lang.String memoryCacheName
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

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: