Constructor and Description |
---|
CacheConfiguration() |
Modifier and Type | Method and Description |
---|---|
CacheConfiguration |
copy() |
CacheLoaderRegistry |
getCacheLoaderRegistry() |
String |
getCacheName() |
long |
getDiskExpiryThreadIntervalSeconds() |
String |
getDiskStorePath()
Deprecated.
|
CacheEventListenerRegistry |
getEventListenerRegistry() |
int |
getMaxElementsInMemory() |
net.sf.ehcache.store.MemoryStoreEvictionPolicy |
getMemoryStoreEvictionPolicy() |
long |
getTimeToIdleSeconds() |
long |
getTimeToLiveSeconds() |
boolean |
isDiskPersistent() |
boolean |
isEternal() |
boolean |
isObjectCache() |
boolean |
isOverflowToDisk() |
void |
setCacheLoaderRegistry(CacheLoaderRegistry cacheLoaderRegistry)
To configure cache loader using the CacheLoaderRegistry
|
void |
setCacheName(String cacheName)
Name of the cache
|
void |
setDiskExpiryThreadIntervalSeconds(long diskExpiryThreadIntervalSeconds)
The number of seconds between runs of the disk expiry thread.
|
void |
setDiskPersistent(boolean diskPersistent)
Whether the disk store persists between restarts of the application.
|
void |
setDiskStorePath(String diskStorePath)
Deprecated.
|
void |
setEternal(boolean eternal)
Sets whether elements are eternal.
|
void |
setEventListenerRegistry(CacheEventListenerRegistry eventListenerRegistry)
To configure event listeners using the CacheEventListenerRegistry
|
void |
setMaxElementsInMemory(int maxElementsInMemory)
The number of elements that may be stored in the defined cache in memory.
|
void |
setMemoryStoreEvictionPolicy(net.sf.ehcache.store.MemoryStoreEvictionPolicy memoryStoreEvictionPolicy)
Which eviction strategy to use when maximum number of elements in memory is reached.
|
void |
setObjectCache(boolean objectCache)
Whether to turn on allowing to store non serializable objects in the cache.
|
void |
setOverflowToDisk(boolean overflowToDisk)
Specifies whether cache may overflow to disk
|
void |
setTimeToIdleSeconds(long timeToIdleSeconds)
The maximum amount of time between accesses before an element expires
|
void |
setTimeToLiveSeconds(long timeToLiveSeconds)
The maximum time between creation time and when an element expires.
|
public CacheConfiguration copy()
public String getCacheName()
public void setCacheName(String cacheName)
public int getMaxElementsInMemory()
public void setMaxElementsInMemory(int maxElementsInMemory)
public net.sf.ehcache.store.MemoryStoreEvictionPolicy getMemoryStoreEvictionPolicy()
public void setMemoryStoreEvictionPolicy(net.sf.ehcache.store.MemoryStoreEvictionPolicy memoryStoreEvictionPolicy)
public boolean isOverflowToDisk()
public void setOverflowToDisk(boolean overflowToDisk)
@Deprecated public String getDiskStorePath()
@Deprecated public void setDiskStorePath(String diskStorePath)
public boolean isEternal()
public void setEternal(boolean eternal)
public long getTimeToLiveSeconds()
public void setTimeToLiveSeconds(long timeToLiveSeconds)
public long getTimeToIdleSeconds()
public void setTimeToIdleSeconds(long timeToIdleSeconds)
public boolean isDiskPersistent()
public void setDiskPersistent(boolean diskPersistent)
public long getDiskExpiryThreadIntervalSeconds()
public void setDiskExpiryThreadIntervalSeconds(long diskExpiryThreadIntervalSeconds)
public void setEventListenerRegistry(CacheEventListenerRegistry eventListenerRegistry)
public CacheEventListenerRegistry getEventListenerRegistry()
public void setCacheLoaderRegistry(CacheLoaderRegistry cacheLoaderRegistry)
public CacheLoaderRegistry getCacheLoaderRegistry()
public boolean isObjectCache()
public void setObjectCache(boolean objectCache)
Apache Camel