|
||||||||||
| 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)
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.
InternalCacheEntry load(Object key)
throws CacheLoaderException
key - key
CacheLoaderException - in the event of problems reading from source
Set<InternalCacheEntry> loadAll()
throws CacheLoaderException
CacheLoaderException - in the event of problems reading from source
boolean containsKey(Object key)
throws CacheLoaderException
key - key to test
CacheLoaderException - in the event of problems reading from source
void start()
throws CacheLoaderException
CacheLoaderException
void stop()
throws CacheLoaderException
CacheLoaderExceptionClass<? extends CacheLoaderConfig> getConfigurationClass()
CacheLoaderConfig bean used to configure this implementation of
CacheLoader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||