Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.net.cache
Interface CacheLoader

All Known Subinterfaces:
CacheStore, IterableCacheLoader
All Known Implementing Classes:
AbstractCacheLoader, AbstractCacheStore, BinaryStoreCacheStore, CacheLoaderCacheStore, CacheLoaderCacheStore.Iterable, HibernateCacheLoader, HibernateCacheStore, MapCacheStore, NullImplementation.NullCacheStore, ReadWriteBackingMap.CacheLoaderCacheStore, TopLinkCacheLoader, TopLinkCacheStore

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

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.