|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.infinispan.loader.AbstractCacheLoader
org.infinispan.loader.cluster.ClusterCacheLoader
public class ClusterCacheLoader
Cache loader that consults other members in the cluster for values. A timeout property is required, a
long that specifies in milliseconds how long to wait for results before returning a null.
| Nested Class Summary | |
|---|---|
static class |
ClusterCacheLoader.ResponseValidityFilter
|
| Constructor Summary | |
|---|---|
ClusterCacheLoader()
|
|
| Method Summary | |
|---|---|
Class<? extends CacheLoaderConfig> |
getConfigurationClass()
|
void |
init(CacheLoaderConfig config,
Cache cache,
Marshaller m)
Used to initialize a cache loader. |
protected boolean |
isCacheReady()
A test to check whether the cache is in its started state. |
InternalCacheEntry |
load(Object key)
Loads an entry mapped to by a given key. |
Set<InternalCacheEntry> |
loadAll()
Loads all entries in the loader. |
void |
start()
|
void |
stop()
|
| Methods inherited from class org.infinispan.loader.AbstractCacheLoader |
|---|
containsKey |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusterCacheLoader()
| Method Detail |
|---|
public void init(CacheLoaderConfig config,
Cache cache,
Marshaller m)
CacheLoaderCacheLoaderManager when
setting up cache loaders.
config - the cache loader configuration beancache - cache associated with this cache loader. Implementations may use this to determine cache name when
selecting where refer to state in storage, for example, a different database table name.m - marshaller to use when loading state from a stream, if supported by the implementation.
public InternalCacheEntry load(Object key)
throws CacheLoaderException
CacheLoader
key - key
CacheLoaderException - in the event of problems reading from source
public Set<InternalCacheEntry> loadAll()
throws CacheLoaderException
CacheLoader
CacheLoaderException - in the event of problems reading from source
public void start()
throws CacheLoaderException
CacheLoaderException
public void stop()
throws CacheLoaderException
CacheLoaderExceptionpublic Class<? extends CacheLoaderConfig> getConfigurationClass()
CacheLoaderConfig bean used to configure this implementation of
CacheLoaderprotected boolean isCacheReady()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||