public abstract class DelegatingCacheLoader<K,V> extends Object implements CacheLoader<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected CacheLoader |
actual |
protected InitializationContext |
ctx |
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingCacheLoader(CacheLoader actual) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object key)
Returns true if the storage contains an entry associated with the given key.
|
void |
init(InitializationContext ctx)
Used to initialize a cache loader.
|
MarshallableEntry<K,V> |
loadEntry(Object key)
Fetches an entry from the storage.
|
void |
start()
Invoked on component start
|
void |
stop()
Invoked on component stop
|
CacheLoader |
undelegate() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAvailableprotected CacheLoader actual
protected InitializationContext ctx
protected DelegatingCacheLoader(CacheLoader actual)
public void init(InitializationContext ctx)
CacheLoaderPersistenceManager
when setting up cache loaders.init in interface CacheLoader<K,V>public void start()
Lifecyclepublic void stop()
Lifecyclepublic boolean contains(Object key)
CacheLoadercontains in interface CacheLoader<K,V>public MarshallableEntry<K,V> loadEntry(Object key)
CacheLoaderMarshallableEntry needs to be created here, InitializationContext.getMarshallableEntryFactory() ()} and InitializationContext.getByteBufferFactory() should be used.loadEntry in interface CacheLoader<K,V>public CacheLoader undelegate()
Copyright © 2021 JBoss by Red Hat. All rights reserved.