public class ClusterLoader extends java.lang.Object implements CacheLoader, LocalOnlyCacheLoader
remoteCallTimeout property is
required, a long that specifies in milliseconds how long to wait for results before returning a null.| Constructor and Description |
|---|
ClusterLoader() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(java.lang.Object key)
Returns true if the storage contains an entry associated with the given key.
|
void |
init(InitializationContext ctx)
Used to initialize a cache loader.
|
protected boolean |
isCacheReady()
A test to check whether the cache is in its started state.
|
MarshallableEntry |
loadEntry(java.lang.Object key)
Fetches an entry from the storage.
|
void |
start()
Invoked on component start
|
void |
stop()
Invoked on component stop
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAvailable, loadpublic void init(InitializationContext ctx)
CacheLoaderPersistenceManager
when setting up cache loaders.init in interface CacheLoaderpublic MarshallableEntry loadEntry(java.lang.Object key) throws PersistenceException
CacheLoaderMarshallableEntry needs to be created here, InitializationContext.getMarshallableEntryFactory() ()} and InitializationContext.getByteBufferFactory() should be used.loadEntry in interface CacheLoaderPersistenceException - in case of an error, e.g. communicating with the external storagepublic boolean contains(java.lang.Object key)
CacheLoadercontains in interface CacheLoaderpublic void start()
Lifecyclepublic void stop()
Lifecycleprotected boolean isCacheReady()