Package | Description |
---|---|
net.sf.ehcache |
This package contains the public API for using ehcache.
|
net.sf.ehcache.config |
This package contains the cache configuration code.
|
net.sf.ehcache.store |
Store package.
|
Constructor and Description |
---|
Cache(String name,
int maxElementsInMemory,
MemoryStoreEvictionPolicy memoryStoreEvictionPolicy,
boolean overflowToDisk,
String diskStorePath,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSeconds,
RegisteredEventListeners registeredEventListeners)
1.2 Constructor
The
ConfigurationFactory and clients can create these. |
Cache(String name,
int maxElementsInMemory,
MemoryStoreEvictionPolicy memoryStoreEvictionPolicy,
boolean overflowToDisk,
String diskStorePath,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSeconds,
RegisteredEventListeners registeredEventListeners,
BootstrapCacheLoader bootstrapCacheLoader)
1.2.1 Constructor
The
ConfigurationFactory and clients can create these. |
Cache(String name,
int maxElementsInMemory,
MemoryStoreEvictionPolicy memoryStoreEvictionPolicy,
boolean overflowToDisk,
String diskStorePath,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSeconds,
RegisteredEventListeners registeredEventListeners,
BootstrapCacheLoader bootstrapCacheLoader,
int maxElementsOnDisk)
1.2.4 Constructor
The
ConfigurationFactory and clients can create these. |
Cache(String name,
int maxElementsInMemory,
MemoryStoreEvictionPolicy memoryStoreEvictionPolicy,
boolean overflowToDisk,
String diskStorePath,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSeconds,
RegisteredEventListeners registeredEventListeners,
BootstrapCacheLoader bootstrapCacheLoader,
int maxElementsOnDisk,
int diskSpoolBufferSizeMB)
1.3 Constructor
The
ConfigurationFactory and clients can create these. |
Cache(String name,
int maxElementsInMemory,
MemoryStoreEvictionPolicy memoryStoreEvictionPolicy,
boolean overflowToDisk,
String diskStorePath,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSeconds,
RegisteredEventListeners registeredEventListeners,
BootstrapCacheLoader bootstrapCacheLoader,
int maxElementsOnDisk,
int diskSpoolBufferSizeMB,
boolean clearOnFlush)
1.6.0 Constructor
The
ConfigurationFactory and clients can create these. |
Cache(String name,
int maxElementsInMemory,
MemoryStoreEvictionPolicy memoryStoreEvictionPolicy,
boolean overflowToDisk,
String diskStorePath,
boolean eternal,
long timeToLiveSeconds,
long timeToIdleSeconds,
boolean diskPersistent,
long diskExpiryThreadIntervalSeconds,
RegisteredEventListeners registeredEventListeners,
BootstrapCacheLoader bootstrapCacheLoader,
int maxElementsOnDisk,
int diskSpoolBufferSizeMB,
boolean clearOnFlush,
boolean isTerracottaClustered,
String terracottaValueMode,
boolean terracottaCoherentReads)
1.7.0 Constructor
The
ConfigurationFactory and clients can create these. |
Modifier and Type | Field and Description |
---|---|
static MemoryStoreEvictionPolicy |
CacheConfiguration.DEFAULT_MEMORY_STORE_EVICTION_POLICY
The default memory store eviction policy is LRU.
|
protected MemoryStoreEvictionPolicy |
CacheConfiguration.memoryStoreEvictionPolicy
The policy used to evict elements from the
MemoryStore . |
Modifier and Type | Method and Description |
---|---|
MemoryStoreEvictionPolicy |
CacheConfiguration.getMemoryStoreEvictionPolicy()
Accessor
|
Modifier and Type | Method and Description |
---|---|
CacheConfiguration |
CacheConfiguration.memoryStoreEvictionPolicy(MemoryStoreEvictionPolicy memoryStoreEvictionPolicy)
Builder which Sets the eviction policy.
|
void |
CacheConfiguration.setMemoryStoreEvictionPolicyFromObject(MemoryStoreEvictionPolicy memoryStoreEvictionPolicy)
Sets the eviction policy.
|
Modifier and Type | Field and Description |
---|---|
static MemoryStoreEvictionPolicy |
MemoryStoreEvictionPolicy.CLOCK
FIFO - first in first out, the oldest element by creation time.
|
static MemoryStoreEvictionPolicy |
MemoryStoreEvictionPolicy.FIFO
FIFO - first in first out, the oldest element by creation time.
|
static MemoryStoreEvictionPolicy |
MemoryStoreEvictionPolicy.LFU
LFU - least frequently used.
|
static MemoryStoreEvictionPolicy |
MemoryStoreEvictionPolicy.LRU
LRU - least recently used.
|
Modifier and Type | Method and Description |
---|---|
static MemoryStoreEvictionPolicy |
MemoryStoreEvictionPolicy.fromString(String policy)
Converts a string representation of the policy into a policy.
|
Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.