public abstract class DelegatingCacheLoader extends Object implements CacheLoader
| 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.
|
MarshalledEntry |
load(Object key)
Fetches an entry from the storage.
|
void |
start()
Invoked on component start
|
void |
stop()
Invoked on component stop
|
CacheLoader |
undelegate() |
protected CacheLoader actual
protected InitializationContext ctx
protected DelegatingCacheLoader(CacheLoader actual)
public void init(InitializationContext ctx)
CacheLoaderPersistenceManager
when setting up cache loaders.init in interface CacheLoaderpublic void start()
Lifecyclepublic void stop()
Lifecyclepublic boolean contains(Object key)
CacheLoadercontains in interface CacheLoaderpublic MarshalledEntry load(Object key)
CacheLoaderMarshalledEntry needs to be created here, InitializationContext.getMarshalledEntryFactory() and InitializationContext.getByteBufferFactory() should be used.load in interface CacheLoaderpublic CacheLoader undelegate()
Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.