public interface CacheLoader
| Modifier and Type | Method and Description |
|---|---|
CacheLoader |
clone(Ehcache cache)
Creates a clone of this extension.
|
void |
dispose()
Providers may be doing all sorts of exotic things and need to be able to clean up on
dispose.
|
String |
getName()
Gets the name of a CacheLoader
|
Status |
getStatus() |
void |
init()
Notifies providers to initialise themselves.
|
Object |
load(Object key)
loads an object.
|
Object |
load(Object key,
Object argument)
Load using both a key and an argument.
|
Map |
loadAll(Collection keys)
loads multiple object.
|
Map |
loadAll(Collection keys,
Object argument)
Load using both a key and an argument.
|
Object load(Object key) throws CacheException
key - the key identifying the object being loadedCacheExceptionMap loadAll(Collection keys)
keys - a Collection of keys identifying the objects to be loadedCacheExceptionObject load(Object key, Object argument)
key - the key to load the object forargument - can be anything that makes sense to the loaderCacheExceptionMap loadAll(Collection keys, Object argument)
keys - the keys to load objects forargument - can be anything that makes sense to the loaderCacheExceptionString getName()
CacheLoader clone(Ehcache cache) throws CloneNotSupportedException
CloneNotSupportedException - if the extension could not be cloned.void init()
void dispose()
throws CacheException
Cache.dispose() is invoked
if this CacheLoader is registered with the cache at disposal time.CacheExceptionStatus getStatus()
Copyright © 2003-2012 Terracotta, Inc.. All Rights Reserved.