org.sape.carbon.services.cache.mru
Class MultiGetMRUCache
java.lang.Object
|
+--org.sape.carbon.services.cache.mru.AbstractMRUCache
|
+--org.sape.carbon.services.cache.mru.MultiGetMRUCache
- All Implemented Interfaces:
- Cache, Configurable, FunctionalInterface, Initializable, Map, MRUCache, MultiGetCache, Schedulable
- public class MultiGetMRUCache
- extends AbstractMRUCache
- implements MultiGetCache, MRUCache, Configurable, Initializable
This class extends the AbstractMRUCache to add multi-get functionality.
Copyright 2002 Sapient
- Since:
- carbon 1.0
- Version:
- $Revision: 1.11 $($Author: dvoet $ / $Date: 2003/05/05 21:21:07 $)
- Author:
- Doug Voet, April 2002
Methods inherited from class org.sape.carbon.services.cache.mru.AbstractMRUCache |
clear, containsKey, containsValue, entrySet, getCacheHits, getCacheMisses, getCapacity, getExpirationInterval, getHitPercentage, getHits, getMisses, getObject, getSize, initialize, isEmpty, keySet, put, putAll, refreshAll, remove, removeLast, runScheduledTask, setCapacity, setExpirationInterval, size, toString, values |
Methods inherited from interface org.sape.carbon.services.cache.Cache |
refreshAll |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
log
private org.apache.commons.logging.Log log
- The handle to Apache-commons logger
dataLoader
protected MultiGetMRUCacheDataLoader dataLoader
- Holds the dataloader for this cache.
MultiGetMRUCache
public MultiGetMRUCache()
configure
public void configure(ComponentConfiguration configuration)
- Description copied from interface:
Configurable
- Configure the component. This is preceded and followed by the suspend and
resume operations if they are available on the component.
- Specified by:
configure
in interface Configurable
- Overrides:
configure
in class AbstractMRUCache
- Parameters:
configuration
- the configuration for this component- See Also:
Configurable.configure(ComponentConfiguration)
getMultiple
public Map getMultiple(Set keys)
- Description copied from interface:
MultiGetCache
- Gets multiple data elements from the cache.
- Specified by:
getMultiple
in interface MultiGetCache
- Parameters:
keys
- a Set of the keys to get
- Returns:
- Map a map keyed by the elements of the parameter keys, the
values are the corresponding data elements in the cache. Only found
elements are returned.
- See Also:
MultiGetCache.getMultiple(Set)
get
public Object get(Object key)
- Specified by:
get
in interface Map
- See Also:
Map.get(Object)
Copyright 1999-2003 Sapient Corporation. All Rights Reserved.