Package | Description |
---|---|
net.sf.ehcache |
This package contains the public API for using ehcache.
|
net.sf.ehcache.bootstrap |
This package contains the bootstrap cache loader interface and abstract factory.
|
net.sf.ehcache.config |
This package contains the cache configuration code.
|
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.blocking |
Doug Lea in his book Concurrent Programming in Java talks about concurrency support constructs.
|
net.sf.ehcache.constructs.classloader |
ClassLoader contstructs package
|
net.sf.ehcache.constructs.eventual |
Construct related to eventual operations
|
net.sf.ehcache.constructs.readthrough |
Ehcache simple read through cache decorator package
|
net.sf.ehcache.constructs.refreshahead |
Ehcache simple refresh-ahead cache decorator package
|
net.sf.ehcache.distribution |
This package is for cache replication.
|
net.sf.ehcache.event |
This package contains interfaces and classes for listening to events.
|
net.sf.ehcache.exceptionhandler |
This package is for exception handling.
|
net.sf.ehcache.extension |
This package contains interfaces and classes for the cache extension mechanism.
|
net.sf.ehcache.hibernate |
This package contains interfaces and classes for Hibernate3.1 and higher.
|
net.sf.ehcache.hibernate.regions |
This package contains region implementations used in Hibernate 3.3 and higher.
|
net.sf.ehcache.hibernate.strategy |
This package contains EhCache specific AccessStrategy implementations.
|
net.sf.ehcache.loader |
This package contains a cache loaders and associated factories.
|
net.sf.ehcache.management |
This package contains JMX MBeans and implementations for management of ehcache.
|
net.sf.ehcache.management.sampled |
This package contains classes related to MBeans with Sampled Statistics.
|
net.sf.ehcache.search.query |
This package contains the QueryMangerBuilder and the QueryManager interface to support BMSQL.
|
net.sf.ehcache.statistics |
This package contains classes related to LiveCacheStatistics and its implementation.
|
net.sf.ehcache.statistics.beans |
This package contains classes related to statistics mbean implementation.
|
net.sf.ehcache.store |
Store package.
|
net.sf.ehcache.store.cachingtier |
Contains the caching tier implementations
|
net.sf.ehcache.store.disk |
This package contains the disk store.
|
net.sf.ehcache.terracotta |
This package contains the Terracotta integration functionalities.
|
net.sf.ehcache.transaction |
This package contains classes for controlling cache operations for transactional use.
|
net.sf.ehcache.transaction.local |
This package contains the local transactions subsystem.
|
net.sf.ehcache.transaction.xa |
This package contains the functionality to provide XA support to a transactional Cache.
|
net.sf.ehcache.util |
Util package.
|
net.sf.ehcache.writer |
This package contains the cache writer functionalities.
|
Modifier and Type | Class and Description |
---|---|
class |
Cache
Cache is the central class in ehcache.
|
Modifier and Type | Method and Description |
---|---|
Ehcache |
CacheManager.addCacheIfAbsent(Ehcache cache)
Only adds the cache to the CacheManager should not one with the same name already be present
|
Ehcache |
CacheManager.addCacheIfAbsent(String cacheName)
Only creates and adds the cache to the CacheManager should not one with the same name already be present
|
Ehcache |
CacheManager.getEhcache(String name)
Gets an Ehcache
|
Modifier and Type | Method and Description |
---|---|
void |
CacheManager.addCache(Ehcache cache)
Adds an
Ehcache to the CacheManager. |
Ehcache |
CacheManager.addCacheIfAbsent(Ehcache cache)
Only adds the cache to the CacheManager should not one with the same name already be present
|
void |
CacheManager.addDecoratedCache(Ehcache decoratedCache)
Adds a decorated
Ehcache to the CacheManager. |
void |
CacheManager.addDecoratedCacheIfAbsent(Ehcache decoratedCache)
Same as
CacheManager.addDecoratedCache(Ehcache) but does not throw exception if another cache with same name already exists. |
SoftLockManager |
FeaturesManager.createSoftLockManager(Ehcache cache,
SoftLockFactory lockFactory)
Create a soft-lock map for the given cache
|
CacheEventListener |
CacheManager.createTerracottaEventReplicator(Ehcache cache)
Create/access the appropriate clustered cache event replicator for the given cache
|
Store |
CacheManager.createTerracottaStore(Ehcache cache)
Create/access the appropriate terracotta clustered store for the given cache
|
WriteBehind |
CacheManager.createTerracottaWriteBehind(Ehcache cache)
Create/access the appropriate clustered write behind queue for the given cache
|
static void |
CacheInitializationHelper.initializeEhcache(CacheManager cacheManager,
Ehcache cache)
Initialize the given
Ehcache using the given CacheManager |
void |
CacheInitializationHelper.initializeEhcache(Ehcache cache)
Initialize the
Ehcache . |
void |
CacheManager.replaceCacheWithDecoratedCache(Ehcache ehcache,
Ehcache decoratedCache)
Replaces in the map of Caches managed by this CacheManager an Ehcache with a decorated version of the same
Ehcache.
|
Modifier and Type | Method and Description |
---|---|
void |
BootstrapCacheLoader.load(Ehcache cache)
Instructs the loader to load the given cache
|
Modifier and Type | Method and Description |
---|---|
Ehcache |
ConfigurationHelper.createDefaultCache() |
Modifier and Type | Method and Description |
---|---|
List<Ehcache> |
ConfigurationHelper.createCacheDecorators(Ehcache cache)
Creates decorated ehcaches for the cache, if any configured in ehcache.xml
|
static List<Ehcache> |
ConfigurationHelper.createDefaultCacheDecorators(Ehcache cache,
CacheConfiguration defaultCacheConfiguration,
ClassLoader loader)
Creates default cache decorators specified in the default cache configuration if any
|
Modifier and Type | Method and Description |
---|---|
List<Ehcache> |
ConfigurationHelper.createCacheDecorators(Ehcache cache)
Creates decorated ehcaches for the cache, if any configured in ehcache.xml
|
static List<Ehcache> |
ConfigurationHelper.createDefaultCacheDecorators(Ehcache cache,
CacheConfiguration defaultCacheConfiguration,
ClassLoader loader)
Creates default cache decorators specified in the default cache configuration if any
|
static SizeOfPolicyConfiguration.MaxDepthExceededBehavior |
SizeOfPolicyConfiguration.resolveBehavior(Ehcache cache)
Helper method which resolves the MaxDepthExceededBehavior of a cache, using the cache manager's one if none was configured
on the cache itself.
|
static int |
SizeOfPolicyConfiguration.resolveMaxDepth(Ehcache cache)
Helper method which resolves the max depth of a cache, using the cache manager's one if none was configured
on the cache itself.
|
Modifier and Type | Class and Description |
---|---|
class |
EhcacheDecoratorAdapter
Adapter class for Ehcache interface decorators.
|
Modifier and Type | Field and Description |
---|---|
protected Ehcache |
EhcacheDecoratorAdapter.underlyingCache
The decorated
Ehcache , has protected visibility so that sub-classes can have access to it. |
Modifier and Type | Method and Description |
---|---|
abstract Ehcache |
CacheDecoratorFactory.createDecoratedEhcache(Ehcache cache,
Properties properties)
Creates a decorated
Ehcache using the properties specified for configuring the decorator. |
abstract Ehcache |
CacheDecoratorFactory.createDefaultDecoratedEhcache(Ehcache cache,
Properties properties)
This method is called when the factory is specified for the defaultCache in the config.
|
Modifier and Type | Method and Description |
---|---|
abstract Ehcache |
CacheDecoratorFactory.createDecoratedEhcache(Ehcache cache,
Properties properties)
Creates a decorated
Ehcache using the properties specified for configuring the decorator. |
abstract Ehcache |
CacheDecoratorFactory.createDefaultDecoratedEhcache(Ehcache cache,
Properties properties)
This method is called when the factory is specified for the defaultCache in the config.
|
static String |
CacheDecoratorFactory.generateDefaultDecoratedCacheName(Ehcache cache,
String cacheNameSuffix)
Utility method to generate name of decorated cache to be created using factory specified in defaultCache.
|
Constructor and Description |
---|
EhcacheDecoratorAdapter(Ehcache underlyingCache)
Constructor accepting the cache to be decorated
|
Modifier and Type | Class and Description |
---|---|
class |
BlockingCache
A blocking decorator for an Ehcache, backed by a
Ehcache . |
class |
SelfPopulatingCache
A selfpopulating decorator for
Ehcache that creates entries on demand. |
class |
UpdatingSelfPopulatingCache
A
Cache backed cache that creates entries on demand. |
Modifier and Type | Method and Description |
---|---|
protected Ehcache |
BlockingCache.getCache()
Retrieve the EHCache backing cache
|
Modifier and Type | Method and Description |
---|---|
protected void |
SelfPopulatingCache.refreshElement(Element element,
Ehcache backingCache)
Refresh a single element.
|
protected Element |
SelfPopulatingCache.refreshElement(Element element,
Ehcache backingCache,
boolean quiet)
Refresh a single element.
|
Constructor and Description |
---|
BlockingCache(Ehcache cache)
Creates a BlockingCache which decorates the supplied cache.
|
BlockingCache(Ehcache cache,
int numberOfStripes)
Creates a BlockingCache which decorates the supplied cache.
|
SelfPopulatingCache(Ehcache cache,
CacheEntryFactory factory)
Creates a SelfPopulatingCache.
|
SelfPopulatingCache(Ehcache cache,
int numberOfStripes,
CacheEntryFactory factory)
Create a SelfPopulatingCache, with a specific number of stripes passed to the
underlying
BlockingCache . |
UpdatingSelfPopulatingCache(Ehcache cache,
UpdatingCacheEntryFactory factory)
Creates a SelfPopulatingCache.
|
Modifier and Type | Class and Description |
---|---|
class |
ClassLoaderAwareCache
A cache decorator that adjusts the Thread context classloader (TCCL) for every cache operation.
|
class |
InternalClassLoaderAwareCache
Extension of Class Loader Aware cache to accommodate the removeAndReturnElement method.
|
Modifier and Type | Field and Description |
---|---|
protected Ehcache |
ClassLoaderAwareCache.cache
Used by InternalClassLoaderAwareCache
|
Constructor and Description |
---|
ClassLoaderAwareCache(Ehcache cache,
ClassLoader classLoader)
Constructor
|
Modifier and Type | Class and Description |
---|---|
class |
StronglyConsistentCacheAccessor
StronglyConsistentCacheAccessor is a decorator that accepts distributed caches configured with eventual consistency.
|
Constructor and Description |
---|
StronglyConsistentCacheAccessor(Ehcache underlyingCache)
Constructor accepting the cache to be decorated.
|
Modifier and Type | Class and Description |
---|---|
class |
ReadThroughCache
This class implements the simplest of all possible read through cache
behaviors, where a call the get() will delegate to a call to getWithLoader().
|
Modifier and Type | Method and Description |
---|---|
Ehcache |
ReadThroughCacheFactory.createDecoratedEhcache(Ehcache cache,
Properties properties) |
Ehcache |
ReadThroughCacheFactory.createDefaultDecoratedEhcache(Ehcache cache,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
Ehcache |
ReadThroughCacheFactory.createDecoratedEhcache(Ehcache cache,
Properties properties) |
Ehcache |
ReadThroughCacheFactory.createDefaultDecoratedEhcache(Ehcache cache,
Properties properties) |
Constructor and Description |
---|
ReadThroughCache(Ehcache underlyingCache,
ReadThroughCacheConfiguration config) |
Modifier and Type | Class and Description |
---|---|
class |
RefreshAheadCache
A cache decorator which implements read ahead refreshing.
|
Modifier and Type | Method and Description |
---|---|
Ehcache |
RefreshAheadCacheFactory.createDecoratedEhcache(Ehcache cache,
Properties properties) |
Ehcache |
RefreshAheadCacheFactory.createDefaultDecoratedEhcache(Ehcache cache,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
Ehcache |
RefreshAheadCacheFactory.createDecoratedEhcache(Ehcache cache,
Properties properties) |
Ehcache |
RefreshAheadCacheFactory.createDefaultDecoratedEhcache(Ehcache cache,
Properties properties) |
static Set<ExtendedStatistics.Statistic<Number>> |
RefreshAheadCache.findBacklogStatistic(Ehcache cache)
Find backlog statistic.
|
static Set<ExtendedStatistics.Statistic<Number>> |
RefreshAheadCache.findDroppedStatistic(Ehcache cache)
Find dropped statistic.
|
static Set<ExtendedStatistics.Statistic<Number>> |
RefreshAheadCache.findOfferStatistic(Ehcache cache)
Find offer statistic.
|
static Set<ExtendedStatistics.Statistic<Number>> |
RefreshAheadCache.findProcessedStatistic(Ehcache cache)
Find processed statistic.
|
static Set<ExtendedStatistics.Statistic<Number>> |
RefreshAheadCache.findRefreshedStatistic(Ehcache cache)
Find refreshed counter statistic.
|
Constructor and Description |
---|
RefreshAheadCache(Ehcache adaptedCache,
RefreshAheadCacheConfiguration refreshConfig)
Create a Refresh Ahead Cache Adaptor with the specified configuration.
|
Modifier and Type | Method and Description |
---|---|
Ehcache |
EventMessage.getEhcache()
Gets the associated
Ehcache . |
Modifier and Type | Method and Description |
---|---|
protected List |
RMIBootstrapCacheLoader.acquireCachePeers(Ehcache cache)
Acquires the cache peers for this cache.
|
void |
RMIBootstrapCacheLoader.doLoad(Ehcache cache)
Bootstraps the cache from a random CachePeer.
|
protected void |
RMIBootstrapCacheLoader.fetchAndPutElements(Ehcache cache,
List requestChunk,
CachePeer cachePeer)
Fetches a chunk of elements from a remote cache peer
|
protected boolean |
RMICacheManagerPeerListener.isDistributed(Ehcache cache)
Determine if the given cache is distributed.
|
List |
CacheManagerPeerProvider.listRemoteCachePeers(Ehcache cache) |
List |
ManualRMICacheManagerPeerProvider.listRemoteCachePeers(Ehcache cache) |
List |
MulticastRMICacheManagerPeerProvider.listRemoteCachePeers(Ehcache cache) |
abstract List |
RMICacheManagerPeerProvider.listRemoteCachePeers(Ehcache cache) |
protected List |
RMIBootstrapCacheLoader.listRemoteCachePeers(Ehcache cache)
Package protected List of cache peers
|
void |
RMIBootstrapCacheLoader.load(Ehcache cache)
Bootstraps the cache from a random CachePeer.
|
void |
RMISynchronousCacheReplicator.notifyElementEvicted(Ehcache cache,
Element element)
Called immediately after an element is evicted from the cache.
|
void |
RMISynchronousCacheReplicator.notifyElementExpired(Ehcache cache,
Element element)
Called immediately after an element is found to be expired.
|
void |
RMIAsynchronousCacheReplicator.notifyElementPut(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache.
|
void |
RMISynchronousCacheReplicator.notifyElementPut(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache.
|
void |
RMIAsynchronousCacheReplicator.notifyElementRemoved(Ehcache cache,
Element element)
Called immediately after an attempt to remove an element.
|
void |
RMISynchronousCacheReplicator.notifyElementRemoved(Ehcache cache,
Element element)
Called immediately after an attempt to remove an element.
|
void |
RMIAsynchronousCacheReplicator.notifyElementUpdated(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache and the element already
existed in the cache.
|
void |
RMISynchronousCacheReplicator.notifyElementUpdated(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache and the element already
existed in the cache.
|
void |
RMIAsynchronousCacheReplicator.notifyRemoveAll(Ehcache cache)
Called during
removeAll() to indicate that the all
elements have been removed from the cache in a bulk operation. |
void |
RMISynchronousCacheReplicator.notifyRemoveAll(Ehcache cache)
Called during
removeAll() to indicate that the all
elements have been removed from the cache in a bulk operation. |
protected static void |
RMISynchronousCacheReplicator.replicatePutNotification(Ehcache cache,
Element element)
Does the actual RMI remote call.
|
protected static void |
RMISynchronousCacheReplicator.replicateRemovalNotification(Ehcache cache,
Serializable key)
Does the actual RMI remote call.
|
protected void |
RMISynchronousCacheReplicator.replicateRemoveAllNotification(Ehcache cache)
Does the actual RMI remote call.
|
Constructor and Description |
---|
EventMessage(Ehcache cache,
Serializable key)
Full constructor.
|
RMICachePeer(Ehcache cache,
String hostName,
Integer rmiRegistryPort,
Integer remoteObjectPort,
Integer socketTimeoutMillis)
Construct a new remote peer.
|
RmiEventMessage(Ehcache cache,
RmiEventMessage.RmiEventType type,
Serializable key,
Element element)
Full constructor.
|
TransactionalRMICachePeer(Ehcache cache,
String hostName,
Integer rmiRegistryPort,
Integer remoteObjectPort,
Integer socketTimeoutMillis)
Construct a new remote peer supporting transactions
|
Modifier and Type | Method and Description |
---|---|
void |
CacheEventListenerAdapter.notifyElementEvicted(Ehcache cache,
Element element)
Called immediately after an element is evicted from the cache.
|
void |
CacheEventListener.notifyElementEvicted(Ehcache cache,
Element element)
Called immediately after an element is evicted from the cache.
|
void |
TerracottaCacheEventReplication.notifyElementEvicted(Ehcache cache,
Element element)
Called immediately after an element is evicted from the cache.
|
void |
CacheEventListenerAdapter.notifyElementExpired(Ehcache cache,
Element element)
Called immediately after an element is found to be expired.
|
void |
CacheEventListener.notifyElementExpired(Ehcache cache,
Element element)
Called immediately after an element is found to be expired.
|
void |
TerracottaCacheEventReplication.notifyElementExpired(Ehcache cache,
Element element)
Called immediately after an element is found to be expired.
|
void |
CacheEventListenerAdapter.notifyElementPut(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache.
|
void |
CacheEventListener.notifyElementPut(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache.
|
void |
TerracottaCacheEventReplication.notifyElementPut(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache.
|
void |
CacheEventListenerAdapter.notifyElementRemoved(Ehcache cache,
Element element)
Called immediately after an attempt to remove an element.
|
void |
CacheEventListener.notifyElementRemoved(Ehcache cache,
Element element)
Called immediately after an attempt to remove an element.
|
void |
TerracottaCacheEventReplication.notifyElementRemoved(Ehcache cache,
Element element)
Called immediately after an attempt to remove an element.
|
void |
CacheEventListenerAdapter.notifyElementUpdated(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache and the element already
existed in the cache.
|
void |
CacheEventListener.notifyElementUpdated(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache and the element already
existed in the cache.
|
void |
TerracottaCacheEventReplication.notifyElementUpdated(Ehcache cache,
Element element)
Called immediately after an element has been put into the cache and the element already
existed in the cache.
|
void |
CacheEventListenerAdapter.notifyRemoveAll(Ehcache cache)
Called during
removeAll() to indicate that the all
elements have been removed from the cache in a bulk operation. |
void |
CacheEventListener.notifyRemoveAll(Ehcache cache)
Called during
removeAll() to indicate that the all
elements have been removed from the cache in a bulk operation. |
void |
TerracottaCacheEventReplication.notifyRemoveAll(Ehcache cache)
Called during
removeAll() to indicate that the all
elements have been removed from the cache in a bulk operation. |
Constructor and Description |
---|
RegisteredEventListeners(Ehcache cache,
CacheStoreHelper helper)
Construct a registered event listeners service
|
Modifier and Type | Method and Description |
---|---|
static Ehcache |
ExceptionHandlingDynamicCacheProxy.createProxy(Ehcache ehcache)
A simple factory method to hide the messiness of creating the proxy from clients.
|
Modifier and Type | Method and Description |
---|---|
static Ehcache |
ExceptionHandlingDynamicCacheProxy.createProxy(Ehcache ehcache)
A simple factory method to hide the messiness of creating the proxy from clients.
|
void |
CacheExceptionHandler.onException(Ehcache ehcache,
Object key,
Exception exception)
Called if an Exception occurs in a Cache method.
|
Constructor and Description |
---|
ExceptionHandlingDynamicCacheProxy(Ehcache ehcache)
Constructor: Use with something like:
|
Modifier and Type | Method and Description |
---|---|
CacheExtension |
CacheExtension.clone(Ehcache cache)
Creates a clone of this extension.
|
abstract CacheExtension |
CacheExtensionFactory.createCacheExtension(Ehcache cache,
Properties properties) |
Constructor and Description |
---|
EhCache(Ehcache cache)
Deprecated.
Creates a new Hibernate pluggable cache by name.
|
Modifier and Type | Field and Description |
---|---|
protected Ehcache |
EhcacheDataRegion.cache
Ehcache instance backing this Hibernate data region.
|
Modifier and Type | Method and Description |
---|---|
Ehcache |
EhcacheDataRegion.getEhcache()
Return the Ehcache instance backing this Hibernate data region.
|
Constructor and Description |
---|
EhcacheCollectionRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
Ehcache underlyingCache,
org.hibernate.cfg.Settings settings,
org.hibernate.cache.CacheDataDescription metadata,
Properties properties)
Constructs an EhcacheCollectionRegion around the given underlying cache.
|
EhcacheEntityRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
Ehcache underlyingCache,
org.hibernate.cfg.Settings settings,
org.hibernate.cache.CacheDataDescription metadata,
Properties properties)
Constructs an EhcacheEntityRegion around the given underlying cache.
|
EhcacheQueryResultsRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
Ehcache underlyingCache,
Properties properties)
Constructs an EhcacheQueryResultsRegion around the given underlying cache.
|
EhcacheTimestampsRegion(EhcacheAccessStrategyFactory accessStrategyFactory,
Ehcache underlyingCache,
Properties properties)
Constructs an EhcacheTimestampsRegion around the given underlying cache.
|
Constructor and Description |
---|
TransactionalEhcacheCollectionRegionAccessStrategy(EhcacheCollectionRegion region,
Ehcache ehcache,
org.hibernate.cfg.Settings settings)
Construct a new collection region access strategy.
|
TransactionalEhcacheEntityRegionAccessStrategy(EhcacheEntityRegion region,
Ehcache ehcache,
org.hibernate.cfg.Settings settings)
Construct a new entity region access strategy.
|
Modifier and Type | Method and Description |
---|---|
CacheLoader |
CacheLoader.clone(Ehcache cache)
Creates a clone of this extension.
|
abstract CacheLoader |
CacheLoaderFactory.createCacheLoader(Ehcache cache,
Properties properties)
Creates a CacheLoader using the Ehcache configuration mechanism at the time the associated cache
is created.
|
Modifier and Type | Method and Description |
---|---|
Ehcache |
CacheStatistics.getEhcache()
Return the backing cache.
|
Constructor and Description |
---|
Cache(Ehcache cache)
A constructor for JCache.
|
CacheConfiguration(Ehcache cache)
Constructs using a backing CacheConfiguration
|
CacheStatistics(Ehcache ehcache)
Constructs an object from an ehcache statistics object
|
Constructor and Description |
---|
CacheSamplerImpl(Ehcache cache)
Constructor accepting the backing
Ehcache |
SampledCache(Ehcache cache)
Constructor accepting the backing
Ehcache |
Modifier and Type | Method and Description |
---|---|
QueryManagerBuilder |
QueryManagerBuilder.addCache(Ehcache cache)
Adds a
Cache to the internal state and allows it to be used as a target in a
BMSQL statement's FROM clause. |
Constructor and Description |
---|
StatisticsGateway(Ehcache ehcache,
ScheduledExecutorService executor)
Instantiates a new statistics placeholder.
|
Modifier and Type | Method and Description |
---|---|
static String |
ExtendedStatisticsMBean.divineName(Ehcache cache)
Divine the name.
|
Constructor and Description |
---|
ExtendedStatisticsMBean(Ehcache cache,
ExtendedStatistics extendedStatistics)
Instantiates a new extended statistics m bean.
|
Modifier and Type | Field and Description |
---|---|
protected Ehcache |
LruMemoryStore.cache
The cache this store is associated with.
|
Modifier and Type | Method and Description |
---|---|
static Store |
MemoryStore.create(Ehcache cache,
Pool pool)
A factory method to create a MemoryStore.
|
protected void |
DiskStoreBootstrapCacheLoader.doLoad(Ehcache cache)
Performs bootstrap loading.
|
protected boolean |
MemoryLimitedCacheLoader.isInMemoryLimitReached(Ehcache cache,
int loadedElements)
Checks whether the cache has reached the limit configured for in-memory storage
|
void |
DiskStoreBootstrapCacheLoader.load(Ehcache cache)
Instructs the loader to load the given cache
|
Constructor and Description |
---|
BruteForceSearchManager(Ehcache cache)
Create a BruteForceSearchManager
|
LruMemoryStore(Ehcache cache,
Store diskStore)
Constructor for the LruMemoryStore object
The backing
LinkedHashMap is created with LRU by access order. |
MemoryStore(Ehcache cache,
Pool pool,
MemoryStore.BackingFactory factory,
SearchManager searchManager)
Constructs things that all MemoryStores have in common.
|
Modifier and Type | Method and Description |
---|---|
static OnHeapCachingTier<Object,Element> |
OnHeapCachingTier.createOnHeapCache(Ehcache cache,
Pool onHeapPool)
Factory method
|
Modifier and Type | Method and Description |
---|---|
static DiskStore |
DiskStore.create(Ehcache cache,
Pool onHeapPool,
Pool onDiskPool)
Creates a persitent-to-disk store for the given cache, using the given disk path.
|
static Store |
DiskStore.createCacheStore(Ehcache cache,
Pool onHeapPool,
Pool onDiskPool)
Create a DiskBackedMemoryStore instance
|
Constructor and Description |
---|
DiskStorageFactory(Ehcache cache,
RegisteredEventListeners cacheEventNotificationService)
Constructs an disk persistent factory for the given cache and disk path.
|
Modifier and Type | Interface and Description |
---|---|
interface |
InternalEhcache
This is an extension of the Ehcache interface to allow addition of new methods to Cache without breaking the public contract.
|
Modifier and Type | Method and Description |
---|---|
CacheEventListener |
ClusteredInstanceFactoryWrapper.createEventReplicator(Ehcache cache)
Create a replicator for the cache events of a given cache
|
CacheEventListener |
ClusteredInstanceFactory.createEventReplicator(Ehcache cache)
Create a replicator for the cache events of a given cache
|
TerracottaStore |
ClusteredInstanceFactoryWrapper.createNonStopStore(Callable<TerracottaStore> store,
Ehcache cache) |
TerracottaStore |
ClusteredInstanceFactory.createNonStopStore(Callable<TerracottaStore> store,
Ehcache cache)
Create a NonStopStoreWrapper for a terracottaStore
|
Store |
ClusteredInstanceFactoryWrapper.createStore(Ehcache cache)
Create a Store instance for the given cache
|
Store |
ClusteredInstanceFactory.createStore(Ehcache cache)
Create a Store instance for the given cache
|
WriteBehind |
ClusteredInstanceFactoryWrapper.createWriteBehind(Ehcache cache)
Create an WriteBehind instance for the given cache
|
WriteBehind |
ClusteredInstanceFactory.createWriteBehind(Ehcache cache)
Create an WriteBehind instance for the given cache
|
SoftLockManager |
ClusteredInstanceFactoryWrapper.getOrCreateSoftLockManager(Ehcache cache)
Create a SoftLockManager for a cache
|
SoftLockManager |
ClusteredInstanceFactory.getOrCreateSoftLockManager(Ehcache cache)
Create a SoftLockManager for a cache
|
void |
TerracottaBootstrapCacheLoader.load(Ehcache cache)
Instructs the loader to load the given cache
|
Modifier and Type | Method and Description |
---|---|
XidTransactionID |
TransactionIDFactoryImpl.createXidTransactionID(Xid xid,
Ehcache cache)
Create a transaction ID based on a XID for uniqueness
|
XidTransactionID |
TransactionIDFactory.createXidTransactionID(Xid xid,
Ehcache cache)
Create a transaction ID based on a XID for uniqueness
|
XidTransactionID |
DelegatingTransactionIDFactory.createXidTransactionID(Xid xid,
Ehcache cache)
Create a transaction ID based on a XID for uniqueness
|
Set<XidTransactionID> |
TransactionIDFactory.getAllXidTransactionIDsFor(Ehcache cache)
Get the set of all XID transactions of a cache.
|
Set<XidTransactionID> |
DelegatingTransactionIDFactory.getAllXidTransactionIDsFor(Ehcache cache) |
Set<XidTransactionID> |
AbstractTransactionIDFactory.getAllXidTransactionIDsFor(Ehcache cache)
Get the set of all XID transactions of a cache.
|
Constructor and Description |
---|
LocalTransactionStore(TransactionController transactionController,
TransactionIDFactory transactionIdFactory,
SoftLockManager softLockManager,
Ehcache cache,
Store store,
ElementValueComparator comparator)
Create a new LocalTransactionStore instance
|
Constructor and Description |
---|
EhcacheXAResourceImpl(Ehcache cache,
Store underlyingStore,
TransactionManagerLookup txnManagerLookup,
SoftLockManager softLockManager,
TransactionIDFactory transactionIDFactory,
ElementValueComparator comparator,
org.terracotta.statistics.observer.OperationObserver<XaCommitOutcome> commitObserver,
org.terracotta.statistics.observer.OperationObserver<XaRollbackOutcome> rollbackObserver,
org.terracotta.statistics.observer.OperationObserver<XaRecoveryOutcome> recoveryObserver)
Constructor
|
XATransactionStore(TransactionManagerLookup transactionManagerLookup,
SoftLockManager softLockManager,
TransactionIDFactory transactionIdFactory,
Ehcache cache,
Store store,
ElementValueComparator comparator)
Constructor
|
Modifier and Type | Method and Description |
---|---|
static void |
CacheTransactionHelper.beginTransactionIfNeeded(Ehcache cache)
Begin a transaction on the current thread if the cache is configured as transactional,
otherwise this method does nothing.
|
static void |
CacheTransactionHelper.commitTransactionIfNeeded(Ehcache cache)
Commit a transaction previously begun on the current thread if the cache is configured as
transactional, otherwise this method does nothing.
|
static boolean |
CacheTransactionHelper.isTransactionStarted(Ehcache cache)
Check if a transaction has begun on the current thread if the cache is configured as
transactional, otherwise always return false.
|
Modifier and Type | Method and Description |
---|---|
CacheWriter |
AbstractCacheWriter.clone(Ehcache cache)
Creates a clone of this writer.
|
CacheWriter |
CacheWriter.clone(Ehcache cache)
Creates a clone of this writer.
|
abstract CacheWriter |
CacheWriterFactory.createCacheWriter(Ehcache cache,
Properties properties)
Creates a CacheWriter using the Ehcache configuration mechanism at the time the associated cache is created.
|
Copyright © 2003–2016 Terracotta, Inc.. All rights reserved.