org.sape.carbon.services.cache.mru
Interface MultiGetMRUCacheDataLoader

All Superinterfaces:
FunctionalInterface

public interface MultiGetMRUCacheDataLoader
extends FunctionalInterface

The MultiGetMRUCacheDataLoader is the interface implemented by Objects that interface with the backing data store of an MRU cache.

Copyright 2002 Sapient

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

Method Summary
 Map loadData(Set keys)
          Loads data from the backing data store and returns it.
 

Method Detail

loadData

public Map loadData(Set keys)
             throws CacheLoadException
Loads data from the backing data store and returns it. This method is called from the getMulitple method of MultiGetMRUCache when some or all of the requested data is not in the cache or has expired. Only the keys of the missing or expired data are requested.

Parameters:
keys - a Set of identifying keys to be used to load their respective objects.
Returns:
a Map of data objects containing a value object for each key passed in keys. (Object) key from keys -> (Object) value. If a key does not have a corresponding value, it should be excluded from the Map returned.
Throws:
CacheLoadException - if the is an exception while loading data


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.