public class AsyncCacheLoader extends DelegatingCacheLoader
| Modifier and Type | Field and Description |
|---|---|
protected AtomicReference<State> |
state |
actual, ctx| Constructor and Description |
|---|
AsyncCacheLoader(CacheLoader actual,
AtomicReference<State> state) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object key)
Returns true if the storage contains an entry associated with the given key.
|
MarshalledEntry |
load(Object key)
Fetches an entry from the storage.
|
void |
start()
Invoked on component start
|
void |
stop()
Invoked on component stop
|
init, undelegateprotected final AtomicReference<State> state
public AsyncCacheLoader(CacheLoader actual, AtomicReference<State> state)
public void start()
Lifecyclestart in interface Lifecyclestart in class DelegatingCacheLoaderpublic void stop()
Lifecyclestop in interface Lifecyclestop in class DelegatingCacheLoaderpublic MarshalledEntry load(Object key)
CacheLoaderMarshalledEntry needs to be created here, InitializationContext.getMarshalledEntryFactory() and InitializationContext.getByteBufferFactory() should be used.load in interface CacheLoaderload in class DelegatingCacheLoaderpublic boolean contains(Object key)
CacheLoadercontains in interface CacheLoadercontains in class DelegatingCacheLoaderCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.