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, waitbulkUpdate, deleteBatch, isAvailableprotected final CacheWriter<K,V> actual
protected InitializationContext ctx
public DelegatingCacheWriter(CacheWriter<K,V> actual)
public void init(InitializationContext ctx)
CacheWriterPersistenceManager
when setting up cache loaders.init in interface CacheWriter<K,V>public void start()
Lifecyclepublic void stop()
Lifecyclepublic void write(MarshallableEntry<? extends K,? extends V> entry)
CacheWriterwrite in interface CacheWriter<K,V>MarshallableEntrypublic boolean delete(Object key)
delete in interface CacheWriter<K,V>public CacheWriter undelegate()
Copyright © 2021 JBoss by Red Hat. All rights reserved.