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()
Invoked on component start
|
void |
stop()
Invoked on component 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
public void start()
Lifecycle
Copyright © 2023 JBoss, a division of Red Hat. All rights reserved.