org.infinispan.loaders
Class AbstractCacheLoader
java.lang.Object
org.infinispan.loaders.AbstractCacheLoader
- All Implemented Interfaces:
- CacheLoader
- Direct Known Subclasses:
- AbstractCacheStore, ClusterCacheLoader
public abstract class AbstractCacheLoader
- extends Object
- implements CacheLoader
An abstract CacheLoader
that holds common implementations for some methods
- Since:
- 4.0
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractCacheLoader
public AbstractCacheLoader()
containsKey
public boolean containsKey(Object key)
throws CacheLoaderException
- This implementation delegates to
CacheLoader.load(Object)
, to ensure that a response is
returned only if the entry is not expired.
- Specified by:
containsKey
in interface CacheLoader
- Parameters:
key
- key to test
- Returns:
- true if the key exists, false otherwise
- Throws:
CacheLoaderException
- in the event of problems reading from source
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.