org.sape.carbon.services.cache
Interface MultiGetCache

All Superinterfaces:
Cache, FunctionalInterface, Map, Schedulable
All Known Implementing Classes:
MultiGetMRUCache

public interface MultiGetCache
extends Cache

Interface implemented by caches that can return multiple entries with on method call. Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.6 $($Author: dvoet $ / $Date: 2003/05/05 21:21:07 $)
Author:
Douglas Voet, April, 2002

Method Summary
 Map getMultiple(Set keys)
          Gets multiple data elements from the cache.
 
Methods inherited from interface org.sape.carbon.services.cache.Cache
refreshAll
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from interface org.sape.carbon.services.scheduler.Schedulable
runScheduledTask
 

Method Detail

getMultiple

public Map getMultiple(Set keys)
Gets multiple data elements from the cache.

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.


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.