public abstract class DelegatingCacheWriter extends Object implements CacheWriter
Modifier and Type | Field and Description |
---|---|
protected CacheWriter |
actual |
protected InitializationContext |
ctx |
Constructor and Description |
---|
DelegatingCacheWriter(CacheWriter 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(MarshalledEntry entry)
Persists the entry to the storage.
|
protected final CacheWriter actual
protected InitializationContext ctx
public DelegatingCacheWriter(CacheWriter actual)
public void init(InitializationContext ctx)
CacheWriter
PersistenceManager
when setting up cache loaders.init
in interface CacheWriter
public void start()
Lifecycle
public void stop()
Lifecycle
public void write(MarshalledEntry entry)
CacheWriter
write
in interface CacheWriter
MarshalledEntry
public boolean delete(Object key)
delete
in interface CacheWriter
public CacheWriter undelegate()
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.