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() |
void |
stop() |
init, undelegateprotected final AtomicReference<State> state
public AsyncCacheLoader(CacheLoader actual, AtomicReference<State> state)
public void start()
start in interface Lifecyclestart in class DelegatingCacheLoaderpublic void stop()
stop 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 © 2016 JBoss, a division of Red Hat. All rights reserved.