@ThreadSafe public interface CacheWriter<K,V> extends Lifecycle
CacheLoader.| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(Object key) |
void |
init(InitializationContext ctx)
Used to initialize a cache loader.
|
void |
write(MarshalledEntry<? extends K,? extends V> entry)
Persists the entry to the storage.
|
void init(InitializationContext ctx)
PersistenceManager
when setting up cache loaders.PersistenceException - in case of an error, e.g. communicating with the external storagevoid write(MarshalledEntry<? extends K,? extends V> entry)
PersistenceException - in case of an error, e.g. communicating with the external storageMarshalledEntryboolean delete(Object key)
PersistenceException - in case of an error, e.g. communicating with the external storageCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.