net.sf.ehcache.config
public class CacheConfiguration extends Object
Version: $Id: CacheConfiguration.java 147 2006-07-04 09:02:07Z gregluck $
Nested Class Summary | |
---|---|
class | CacheConfiguration.BootstrapCacheLoaderFactoryConfiguration
Configuration for the BootstrapCacheLoaderFactoryConfiguration. |
class | CacheConfiguration.CacheEventListenerFactoryConfiguration
Configuration for the CachePeerListenerFactoryConfiguration. |
Field Summary | |
---|---|
protected CacheConfiguration.BootstrapCacheLoaderFactoryConfiguration | bootstrapCacheLoaderFactoryConfiguration
The BootstrapCacheLoaderFactoryConfiguration. |
protected List | cacheEventListenerConfigurations
The event listener factories added by BeanUtils. |
protected long | diskExpiryThreadIntervalSeconds
The interval in seconds between runs of the disk expiry thread.
|
protected boolean | diskPersistent
For caches that overflow to disk, whether the disk cache persists between CacheManager instances. |
protected boolean | eternal
Sets whether elements are eternal. |
protected int | maxElementsInMemory
the maximum objects to be held in the MemoryStore. |
protected MemoryStoreEvictionPolicy | memoryStoreEvictionPolicy
The policy used to evict elements from the MemoryStore.
|
protected 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. |
Method Summary | |
---|---|
void | addBootstrapCacheLoaderFactory(CacheConfiguration.BootstrapCacheLoaderFactoryConfiguration bootstrapCacheLoaderFactoryConfiguration)
Allows BeanHandler to add the CacheManagerEventListener to the configuration. |
void | addCacheEventListenerFactory(CacheConfiguration.CacheEventListenerFactoryConfiguration factory)
Used by BeanUtils to add cacheEventListenerFactory elements to the cache configuration. |
CacheConfiguration.BootstrapCacheLoaderFactoryConfiguration | getBootstrapCacheLoaderFactoryConfiguration()
Accessor |
List | getCacheEventListenerConfigurations()
Accessor |
long | getDiskExpiryThreadIntervalSeconds()
Accessor |
int | getMaxElementsInMemory()
Accessor |
MemoryStoreEvictionPolicy | getMemoryStoreEvictionPolicy()
Accessor |
String | getName()
Accessor |
int | getTimeToIdleSeconds()
Accessor |
int | getTimeToLiveSeconds()
Accessor |
boolean | isDiskPersistent()
Accessor |
boolean | isEternal()
Accessor |
boolean | isOverflowToDisk()
Accessor |
void | setDiskExpiryThreadIntervalSeconds(int diskExpiryThreadIntervalSeconds)
Sets the interval in seconds between runs of the disk expiry thread.
|
void | setDiskPersistent(boolean diskPersistent)
Sets whether, for caches that overflow to disk, the disk cache persist between CacheManager instances. |
void | setEternal(boolean eternal)
Sets whether elements are eternal. |
void | setMaxElementsInMemory(int maxElementsInMemory)
Sets the maximum objects to be held in memory. |
void | setMemoryStoreEvictionPolicy(String memoryStoreEvictionPolicy)
Sets the eviction policy. |
void | setName(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. |
Since: 1.2