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, undelegate
protected final AtomicReference<State> state
public AsyncCacheLoader(CacheLoader actual, AtomicReference<State> state)
public void start()
start
in interface Lifecycle
start
in class DelegatingCacheLoader
public void stop()
stop
in interface Lifecycle
stop
in class DelegatingCacheLoader
public MarshalledEntry load(Object key)
CacheLoader
MarshalledEntry
needs to be created here, InitializationContext.getMarshalledEntryFactory()
and InitializationContext.getByteBufferFactory()
should be used.load
in interface CacheLoader
load
in class DelegatingCacheLoader
public boolean contains(Object key)
CacheLoader
contains
in interface CacheLoader
contains
in class DelegatingCacheLoader
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.