@ThreadSafe public interface CacheWriter<K,V> extends Lifecycle
CacheLoader.| Modifier and Type | Method and Description |
|---|---|
boolean |
delete(K key) |
void |
init(InitializationContext ctx)
Used to initialize a cache loader.
|
void |
write(MarshalledEntry<K,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<K,V> entry)
PersistenceException - in case of an error, e.g. communicating with the external storageMarshalledEntryboolean delete(K key)
PersistenceException - in case of an error, e.g. communicating with the external storageCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.