NonBlockingStore@ThreadSafe @Deprecated public interface CacheLoader<K,V> extends Lifecycle
CacheWriter.| 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.
|
default boolean |
isAvailable()
Deprecated.
|
MarshallableEntry<K,V> |
loadEntry(Object key)
Deprecated.
Fetches an entry from the storage.
|
void init(InitializationContext ctx)
PersistenceManager
when setting up cache loaders.PersistenceException - in case of an error, e.g. communicating with the external storageMarshallableEntry<K,V> loadEntry(Object key)
MarshallableEntry needs to be created here, InitializationContext.getMarshallableEntryFactory() ()} and InitializationContext.getByteBufferFactory() should be used.PersistenceException - in case of an error, e.g. communicating with the external storageboolean contains(Object key)
PersistenceException - in case of an error, e.g. communicating with the external storagedefault boolean isAvailable()
Copyright © 2021 JBoss by Red Hat. All rights reserved.