public class ExoCacheConfig extends Object implements Cloneable
ExoCache| Modifier and Type | Field and Description | 
|---|---|
boolean | 
avoidValueReplication
Indicates whether or not the replication of the values should be avoided 
 | 
| Constructor and Description | 
|---|
ExoCacheConfig()  | 
| Modifier and Type | Method and Description | 
|---|---|
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 
 | 
public boolean avoidValueReplication
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 setpublic ExoCacheConfig clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionObject.clone()Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.