CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation

com.tangosol.net.cache
Class AbstractCacheLoader

java.lang.Object
  extended by com.tangosol.util.Base
      extended by com.tangosol.net.cache.AbstractCacheLoader
All Implemented Interfaces:
CacheLoader
Direct Known Subclasses:
AbstractCacheStore

public abstract class AbstractCacheLoader
extends Base
implements CacheLoader

An abstract base class for the JCache CacheLoader.

Author:
cp 2003.05.29

Constructor Summary
AbstractCacheLoader()
           
 
Method Summary
abstract  Object load(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.
 Map loadAll(Collection colKeys)
          Return the values associated with each the specified keys in the passed collection.
 

Constructor Detail

AbstractCacheLoader

public AbstractCacheLoader()
Method Detail

load

public abstract Object load(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.

Specified by:
load in interface CacheLoader
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

public Map loadAll(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.

Specified by:
loadAll in interface CacheLoader
Parameters:
colKeys - a collection of keys to load
Returns:
a Map of keys to associated values for the specified keys

CoherenceTM v3.3
Copyright© 2000-2007 by Oracle Corporation