|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheLoader
Responsible for loading cache data from an external source
Method Summary | |
---|---|
boolean |
containsKey(Object key)
|
Class<? extends CacheLoaderConfig> |
getConfigurationClass()
|
void |
init(CacheLoaderConfig config,
Cache<?,?> cache,
Marshaller m)
Used to initialize a cache loader. |
InternalCacheEntry |
load(Object key)
Loads an entry mapped to by a given key. |
Set<InternalCacheEntry> |
loadAll()
Loads all entries in the loader. |
void |
start()
|
void |
stop()
|
Method Detail |
---|
void init(CacheLoaderConfig config, Cache<?,?> cache, Marshaller m) throws CacheLoaderException
CacheLoaderManager
when setting up cache loaders.
config
- the cache loader configuration beancache
- cache associated with this cache loader. Implementations may use this to determine cache name when
selecting where refer to state in storage, for example, a different database table name.m
- marshaller to use when loading state from a stream, if supported by the implementation.
CacheLoaderException
InternalCacheEntry load(Object key) throws CacheLoaderException
key
- key
CacheLoaderException
- in the event of problems reading from sourceSet<InternalCacheEntry> loadAll() throws CacheLoaderException
CacheLoaderException
- in the event of problems reading from sourceboolean containsKey(Object key) throws CacheLoaderException
key
- key to test
CacheLoaderException
- in the event of problems reading from sourcevoid start() throws CacheLoaderException
CacheLoaderException
void stop() throws CacheLoaderException
CacheLoaderException
Class<? extends CacheLoaderConfig> getConfigurationClass()
CacheLoaderConfig
bean used to configure this
implementation of CacheLoader
|
Google Analytics | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |