@Deprecated public class ClusterLoader extends 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()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object key)
Deprecated.
Returns true if the storage contains an entry associated with the given key.
|
void |
init(InitializationContext ctx)
Deprecated.
Used to initialize a cache loader.
|
protected boolean |
isCacheReady()
Deprecated.
A test to check whether the cache is in its started state.
|
MarshallableEntry |
loadEntry(Object key)
Deprecated.
Fetches an entry from the storage.
|
void |
start()
Deprecated.
Invoked on component start
|
void |
stop()
Deprecated.
Invoked on component stop
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isAvailable
public void init(InitializationContext ctx)
CacheLoader
PersistenceManager
when setting up cache loaders.init
in interface CacheLoader
public MarshallableEntry loadEntry(Object key) throws PersistenceException
CacheLoader
MarshallableEntry
needs to be created here, InitializationContext.getMarshallableEntryFactory()
()} and InitializationContext.getByteBufferFactory()
should be used.loadEntry
in interface CacheLoader
PersistenceException
- in case of an error, e.g. communicating with the external storagepublic boolean contains(Object key)
CacheLoader
contains
in interface CacheLoader
public void start()
Lifecycle
public void stop()
Lifecycle
protected boolean isCacheReady()
Copyright © 2021 JBoss by Red Hat. All rights reserved.