public class JCacheWriterAdapter<K,V> extends Object implements CacheWriter
Constructor and Description |
---|
JCacheWriterAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(Object key) |
void |
init(InitializationContext ctx)
Used to initialize a cache loader.
|
void |
setCacheWriter(javax.cache.integration.CacheWriter<? super K,? super V> delegate) |
void |
start() |
void |
stop() |
void |
write(MarshalledEntry entry)
Persists the entry to the storage.
|
public void setCacheWriter(javax.cache.integration.CacheWriter<? super K,? super V> delegate)
public void init(InitializationContext ctx)
CacheWriter
PersistenceManager
when setting up cache loaders.init
in interface CacheWriter
public void write(MarshalledEntry entry)
CacheWriter
write
in interface CacheWriter
MarshalledEntry
public boolean delete(Object key)
delete
in interface CacheWriter
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.