| Modifier and Type | Method and Description |
|---|---|
| public CacheLoader | |
| public void | dispose()
CacheLoader instances may be doing all sorts of exotic things and need to be able to clean up on dispose. |
| public String | |
| public Status | |
| public void | |
| public Object | |
| public Object | |
| public Map | Returns: A Map of objects that are to be stored in the cache.a Collection of keys identifying the objects to be loaded keys)loads multiple object. |
| public Map | Returns: a map of Objects keyed by the collection of keys passed in.the keys to load objects for keys, Object can be anything that makes sense to the loader argument)Load using both a key and an argument. |
| clone | back to summary |
|---|---|
| public CacheLoader clone(Ehcache cache) throws CloneNotSupportedException Creates a clone of this extension. This method will only be called by ehcache before a cache is initialized. Implementations should throw CloneNotSupportedException if they do not support clone but that will stop them from being used with defaultCache.
| |
| dispose | back to summary |
|---|---|
| public void dispose() throws CacheException CacheLoader instances may be doing all sorts of exotic things and need to be able to clean up
on dispose. This method will be invoked when No operations may be performed on the cache this CacheLoader is registered with. The cache itself is partly disposed when this method is called, and should not be accessed.
| |
| getName | back to summary |
|---|---|
| public String getName() Gets the name of a CacheLoader
| |
| getStatus | back to summary |
|---|---|
public Status getStatus()
| |
| init | back to summary |
|---|---|
| public void init() Notifies providers to initialise themselves. This method is called during the Cache's initialise method after it has changed it's status to alive. Cache operations are legal in this method. | |
| load | back to summary |
|---|---|
| public Object load(Object key) throws CacheException loads an object. Application writers should implement this method to customize the loading of cache object. This method is called by the caching service when the requested object is not in the cache.
| |
| load | back to summary |
|---|---|
| public Object load(Object key, Object argument) Load using both a key and an argument. JCache will call through to the load(key) method, rather than this method, where the argument is null. | |
| loadAll | back to summary |
|---|---|
| public Map loads multiple object. Application writers should implement this method to customize the loading of cache object. This method is called by the caching service when the requested object is not in the cache.
| |
| loadAll | back to summary |
|---|---|
| public Map Load using both a key and an argument. JCache will use the loadAll(key) method where the argument is null.
| |