|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.ehcache.config.Configuration.Cache
A class to represent Cache configuration
e.g.
Field Summary | |
protected boolean |
eternal
Sets whether elements are eternal. |
protected int |
maxElementsInMemory
the maximum objects to be held in memory |
protected java.lang.String |
name
the name of the cache |
protected boolean |
overflowToDisk
whether elements can overflow to disk when the in-memory cache has reached the set limit. |
protected int |
timeToIdleSeconds
the time to idle for an element before it expires. |
protected int |
timeToLiveSeconds
Sets the time to idle for an element before it expires. |
Constructor Summary | |
Configuration.Cache()
|
Method Summary | |
void |
setEternal(boolean eternal)
Sets whether elements are eternal. |
void |
setMaxElementsInMemory(int maxElementsInMemory)
Sets the maximum objects to be held in memory |
void |
setName(java.lang.String name)
Sets the name of the cache. |
void |
setOverflowToDisk(boolean overflowToDisk)
Sets whether elements can overflow to disk when the in-memory cache has reached the set limit. |
void |
setTimeToIdleSeconds(int timeToIdleSeconds)
Sets the time to idle for an element before it expires. |
void |
setTimeToLiveSeconds(int timeToLiveSeconds)
Sets the time to idle for an element before it expires. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String name
protected int maxElementsInMemory
protected boolean eternal
protected int timeToIdleSeconds
protected int timeToLiveSeconds
protected boolean overflowToDisk
Constructor Detail |
public Configuration.Cache()
Method Detail |
public void setName(java.lang.String name)
public void setMaxElementsInMemory(int maxElementsInMemory)
public void setEternal(boolean eternal)
public void setTimeToIdleSeconds(int timeToIdleSeconds)
public void setTimeToLiveSeconds(int timeToLiveSeconds)
public void setOverflowToDisk(boolean overflowToDisk)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |