public class ExoCacheConfig extends Object implements Cloneable
ExoCache| Modifier and Type | Field and Description |
|---|---|
boolean |
avoidValueReplication
Deprecated.
|
| Constructor and Description |
|---|
ExoCacheConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
avoidValueReplication() |
ExoCacheConfig |
clone() |
CacheMode |
getCacheMode() |
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 |
isAsync()
Indicates if the cache is async or not.
|
boolean |
isDistributed()
Indicates if the cache is distributed or not.
|
boolean |
isInvalidated()
Indicates if the cache is invalidate or not.
|
boolean |
isLogEnabled() |
boolean |
isRepicated()
Indicates if the cache is replicated or not.
|
void |
setCacheMode(CacheMode cacheMode) |
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
|
@Deprecated 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 boolean isAsync()
public boolean isInvalidated()
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 setCacheMode(CacheMode cacheMode)
public CacheMode getCacheMode()
public ExoCacheConfig clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionObject.clone()Copyright © 2020 eXo Platform SAS. All Rights Reserved.