Package | Description |
---|---|
net.sf.ehcache |
This package contains the public API for using ehcache.
|
net.sf.ehcache.constructs |
The constructs package builds on top of the core ehcache classes to create
implementations for common caching patterns.
|
net.sf.ehcache.constructs.classloader |
ClassLoader contstructs package
|
net.sf.ehcache.store |
Store package.
|
net.sf.ehcache.store.chm |
CHM package.
|
net.sf.ehcache.store.disk |
This package contains the disk store.
|
Modifier and Type | Method and Description |
---|---|
RegisteredEventListeners |
Ehcache.getCacheEventNotificationService()
Use this to access the service in order to register and unregister listeners
|
RegisteredEventListeners |
Cache.getCacheEventNotificationService()
Use this to access the service in order to register and unregister listeners
|
Constructor and Description |
---|
Cache(CacheConfiguration cacheConfiguration,
RegisteredEventListeners registeredEventListeners,
BootstrapCacheLoader bootstrapCacheLoader)
2.0 and higher 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)
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,
boolean terracottaCoherentReads)
1.7.0 Constructor
The
ConfigurationFactory and clients can create these. |
Modifier and Type | Method and Description |
---|---|
RegisteredEventListeners |
EhcacheDecoratorAdapter.getCacheEventNotificationService()
Use this to access the service in order to register and unregister listeners
|
Modifier and Type | Method and Description |
---|---|
RegisteredEventListeners |
ClassLoaderAwareCache.getCacheEventNotificationService()
Use this to access the service in order to register and unregister listeners
|
Modifier and Type | Method and Description |
---|---|
SelectableConcurrentHashMap |
MemoryStore.BackingFactory.newBackingMap(PoolAccessor poolAccessor,
int initialCapacity,
float loadFactor,
int concurrency,
int maximumCapacity,
RegisteredEventListeners eventListener)
Deprecated.
|
SelectableConcurrentHashMap |
MemoryStore.BackingFactory.newBackingMap(PoolAccessor poolAccessor,
int concurrency,
int maximumCapacity,
RegisteredEventListeners eventListener)
Create a MemoryStore backing map.
|
Constructor and Description |
---|
LegacyStoreWrapper(Store memory,
Store disk,
RegisteredEventListeners eventListeners,
CacheConfiguration config)
Create a correctly locked store wrapper around the supplied in-memory and on disk stores.
|
Constructor and Description |
---|
SelectableConcurrentHashMap(PoolAccessor poolAccessor,
int initialCapacity,
float loadFactor,
int concurrency,
long maximumSize,
RegisteredEventListeners cacheEventNotificationService) |
SelectableConcurrentHashMap(PoolAccessor poolAccessor,
int concurrency,
long maximumSize,
RegisteredEventListeners cacheEventNotificationService) |
Constructor and Description |
---|
DiskStorageFactory(Ehcache cache,
RegisteredEventListeners cacheEventNotificationService)
Constructs an disk persistent factory for the given cache and disk path.
|
Segment(int initialCapacity,
float loadFactor,
DiskStorageFactory primary,
CacheConfiguration cacheConfiguration,
PoolAccessor onHeapPoolAccessor,
PoolAccessor onDiskPoolAccessor,
RegisteredEventListeners cacheEventNotificationService,
org.terracotta.statistics.observer.OperationObserver<CacheOperationOutcomes.EvictionOutcome> evictionObserver)
Create a Segment with the given initial capacity, load-factor, primary element substitute factory, and identity element substitute factory.
|
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.