CoherenceTM v3.4
Copyright© 2000-2008 by Oracle Corporation

com.tangosol.net.cache
Interface CacheLoader

All Known Subinterfaces:
CacheStore, IterableCacheLoader
All Known Implementing Classes:
AbstractCacheLoader, AbstractCacheStore, BinaryStoreCacheStore, CacheLoaderCacheStore, CacheLoaderCacheStore.Iterable, HibernateCacheLoader, HibernateCacheStore, JpaCacheLoader, JpaCacheStore, MapCacheStore, ReadWriteBackingMap.CacheLoaderCacheStore, ReadWriteBackingMap.CacheStoreWrapper, TopLinkCacheLoader, TopLinkCacheStore, VersionedBackingMap.CacheStoreWrapper

public interface CacheLoader

A JCache CacheLoader.

Since:
Coherence 2.2
Author:
cp 2003.05.29

Method Summary
 java.lang.Object load(java.lang.Object oKey)
          Return the value associated with the specified key, or null if the key does not have an associated value in the underlying store.
 java.util.Map loadAll(java.util.Collection colKeys)
          Return the values associated with each the specified keys in the passed collection.
 

Method Detail

load

java.lang.Object load(java.lang.Object oKey)
Return the value associated with the specified key, or null if the key does not have an associated value in the underlying store.

Parameters:
oKey - key whose associated value is to be returned
Returns:
the value associated with the specified key, or null if no value is available for that key

loadAll

java.util.Map loadAll(java.util.Collection colKeys)
Return the values associated with each the specified keys in the passed collection. If a key does not have an associated value in the underlying store, then the return map will not have an entry for that key.

Parameters:
colKeys - a collection of keys to load
Returns:
a Map of keys to associated values for the specified keys

CoherenceTM v3.4
Copyright© 2000-2008 by Oracle Corporation