public class CLInterfaceLoader<K,V> extends Object implements CacheLoader<K,V>
Constructor and Description |
---|
CLInterfaceLoader() |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(K 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<K,V> |
load(K key)
Fetches an entry from the storage.
|
void |
start() |
void |
stop() |
public void init(InitializationContext ctx)
CacheLoader
PersistenceManager
when setting up cache loaders.init
in interface CacheLoader<K,V>
public MarshalledEntry<K,V> load(K key)
CacheLoader
MarshalledEntry
needs to be created here, InitializationContext.getMarshalledEntryFactory()
and InitializationContext.getByteBufferFactory()
should be used.load
in interface CacheLoader<K,V>
public boolean contains(K key)
CacheLoader
contains
in interface CacheLoader<K,V>
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.