|
eXo Kernel :: Component :: Cache Service 2.4.8-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.cache.ExoCacheConfig
public class ExoCacheConfig
This class defines the main configuration properties of an ExoCache
| Field Summary | |
|---|---|
boolean |
avoidValueReplication
Indicates whether or not the replication of the values should be avoided |
| Constructor Summary | |
|---|---|
ExoCacheConfig()
|
|
| Method Summary | |
|---|---|
boolean |
avoidValueReplication()
|
ExoCacheConfig |
clone()
|
String |
getImplementation()
Returns the full qualified name of the cache implementation to use. |
String |
getLabel()
Returns the cache label |
long |
getLiveTime()
Returns the amount of time (in seconds) a cache entry is not written or read before it is evicted |
int |
getMaxSize()
Returns the maximum amount of entries allowed in the cache |
String |
getName()
Returns the cache name |
boolean |
isDistributed()
Indicates if the cache is distributed or not. |
boolean |
isLogEnabled()
|
boolean |
isRepicated()
Indicates if the cache is replicated or not. |
void |
setAvoidValueReplication(boolean avoidValueReplication)
|
void |
setDistributed(boolean b)
Sets distributed state |
void |
setImplementation(String alg)
Sets the full qualified name of the cache implementation to use. |
void |
setLabel(String s)
Sets the cache label |
void |
setLiveTime(long period)
Sets the amount of time (in seconds) a cache entry is not written or read before it is evicted |
void |
setLogEnabled(boolean enableLogging)
|
void |
setMaxSize(int size)
Sets the maximum amount of entries allowed in the cache |
void |
setName(String s)
Sets the cache name |
void |
setReplicated(boolean b)
Sets replicated state |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public boolean avoidValueReplication
| Constructor Detail |
|---|
public ExoCacheConfig()
| Method Detail |
|---|
public String getName()
public void setName(String s)
s - the cache namepublic String getLabel()
public void setLabel(String s)
s - the cache labelpublic int getMaxSize()
public void setMaxSize(int size)
size - the max size of the cachepublic long getLiveTime()
public void setLiveTime(long period)
period - the value of the live timepublic boolean isDistributed()
public void setDistributed(boolean b)
b - flag that indicates if the cache is distributed or not.public boolean isRepicated()
public void setReplicated(boolean b)
b - flag that indicates if the cache is repicated or not.public String getImplementation()
public void setImplementation(String alg)
alg - the full qualified name of the cache implementationpublic boolean isLogEnabled()
public void setLogEnabled(boolean enableLogging)
public boolean avoidValueReplication()
public void setAvoidValueReplication(boolean avoidValueReplication)
avoidValueReplication - the avoidValueReplication to set
public ExoCacheConfig clone()
throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionObject.clone()
|
eXo Kernel :: Component :: Cache Service 2.4.8-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||