public abstract class DelegatingCacheWriter<K,V> extends Object implements CacheWriter<K,V>
Modifier and Type | Field and Description |
---|---|
protected CacheWriter<K,V> |
actual |
protected InitializationContext |
ctx |
Constructor and Description |
---|
DelegatingCacheWriter(CacheWriter<K,V> actual) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(Object key) |
void |
init(InitializationContext ctx)
Used to initialize a cache loader.
|
void |
start()
Invoked on component start
|
void |
stop()
Invoked on component stop
|
CacheWriter |
undelegate() |
void |
write(MarshallableEntry<? extends K,? extends V> entry)
Persists the entry to the storage.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
bulkUpdate, deleteBatch, isAvailable
protected final CacheWriter<K,V> actual
protected InitializationContext ctx
public DelegatingCacheWriter(CacheWriter<K,V> actual)
public void init(InitializationContext ctx)
CacheWriter
PersistenceManager
when setting up cache loaders.init
in interface CacheWriter<K,V>
public void start()
Lifecycle
public void stop()
Lifecycle
public void write(MarshallableEntry<? extends K,? extends V> entry)
CacheWriter
write
in interface CacheWriter<K,V>
MarshallableEntry
public boolean delete(Object key)
delete
in interface CacheWriter<K,V>
public CacheWriter undelegate()
Copyright © 2021 JBoss by Red Hat. All rights reserved.