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.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.loader |
This package contains a cache loaders and associated factories.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<CacheLoader> |
Cache.registeredCacheLoaders |
Modifier and Type | Method and Description |
---|---|
private static CacheLoader |
Cache.createCacheLoader(CacheConfiguration.CacheLoaderFactoryConfiguration factoryConfiguration,
Ehcache cache)
Tries to load the class specified otherwise defaults to null.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<CacheLoader> |
Ehcache.getRegisteredCacheLoaders() |
java.util.List<CacheLoader> |
Cache.getRegisteredCacheLoaders() |
Modifier and Type | Method and Description |
---|---|
(package private) java.util.concurrent.Future<java.util.concurrent.atomic.AtomicReference<java.lang.Object>> |
Cache.asynchronousLoad(java.lang.Object key,
CacheLoader specificLoader,
java.lang.Object argument)
Does the asynchronous loading.
|
(package private) java.util.concurrent.Future |
Cache.asynchronousPut(java.lang.Object key,
CacheLoader specificLoader,
java.lang.Object argument)
Does the asynchronous put into the cache of the asynchronously loaded value.
|
Element |
Ehcache.getWithLoader(java.lang.Object key,
CacheLoader loader,
java.lang.Object loaderArgument)
This method will return, from the cache, the object associated with
the argument "key".
|
Element |
Cache.getWithLoader(java.lang.Object key,
CacheLoader loader,
java.lang.Object loaderArgument)
This method will return, from the cache, the Element associated with the argument "key".
|
private java.lang.Object |
Cache.loadValueUsingLoader(java.lang.Object key,
CacheLoader specificLoader,
java.lang.Object argument)
Will attempt to load the value for a key, either using the passedin loader, or falling back to registered ones
|
void |
Ehcache.registerCacheLoader(CacheLoader cacheLoader)
Register a
CacheLoader with the cache. |
void |
Cache.registerCacheLoader(CacheLoader cacheLoader)
Register a
CacheLoader with the cache. |
void |
Ehcache.unregisterCacheLoader(CacheLoader cacheLoader)
Unregister a
CacheLoader with the cache. |
void |
Cache.unregisterCacheLoader(CacheLoader cacheLoader)
Unregister a
CacheLoader with the cache. |
Modifier and Type | Method and Description |
---|---|
java.util.List<CacheLoader> |
EhcacheDecoratorAdapter.getRegisteredCacheLoaders() |
Modifier and Type | Method and Description |
---|---|
Element |
EhcacheDecoratorAdapter.getWithLoader(java.lang.Object key,
CacheLoader loader,
java.lang.Object loaderArgument)
This method will return, from the cache, the object associated with
the argument "key".
|
void |
EhcacheDecoratorAdapter.registerCacheLoader(CacheLoader cacheLoader)
Register a
CacheLoader with the cache. |
void |
EhcacheDecoratorAdapter.unregisterCacheLoader(CacheLoader cacheLoader)
Unregister a
CacheLoader with the cache. |
Modifier and Type | Method and Description |
---|---|
Element |
BlockingCache.getWithLoader(java.lang.Object key,
CacheLoader loader,
java.lang.Object loaderArgument)
This method is not appropriate to use with BlockingCache.
|
void |
BlockingCache.registerCacheLoader(CacheLoader cacheLoader)
Register a
CacheLoader with the cache. |
void |
BlockingCache.unregisterCacheLoader(CacheLoader cacheLoader)
Unregister a
CacheLoader with the cache. |
Modifier and Type | Method and Description |
---|---|
Element |
ClassLoaderAwareCache.getWithLoader(java.lang.Object arg0,
CacheLoader arg1,
java.lang.Object arg2)
This method will return, from the cache, the object associated with
the argument "key".
|
void |
ClassLoaderAwareCache.registerCacheLoader(CacheLoader arg0)
Register a
CacheLoader with the cache. |
void |
ClassLoaderAwareCache.unregisterCacheLoader(CacheLoader arg0)
Unregister a
CacheLoader with the cache. |
Modifier and Type | Method and Description |
---|---|
CacheLoader |
CacheLoader.clone(Ehcache cache)
Creates a clone of this extension.
|
abstract CacheLoader |
CacheLoaderFactory.createCacheLoader(Ehcache cache,
java.util.Properties properties)
Creates a CacheLoader using the Ehcache configuration mechanism at the time the associated cache
is created.
|