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

All Superinterfaces:
FunctionalInterface
All Known Implementing Classes:
SqlBeanMapMRUDataLoader

public interface MRUCacheDataLoader
extends FunctionalInterface

The MRUCacheDataLoader 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
 Object loadDatum(Object key)
          Loads a single datum from the backing data store and returns it.
 

Method Detail

loadDatum

public Object loadDatum(Object key)
                 throws CacheLoadException
Loads a single datum from the backing data store and returns it. This method is called from the get method of MRUCache when the requested datum is not in the cache or has expired.

Parameters:
key - an object providing all information necessary to locate a datum
Returns:
the data object represented by the key parameter
Throws:
CacheLoadException - indicates an error loading the data


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.