org.infinispan.loaders
Class AbstractCacheLoader

java.lang.Object
  extended by 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

Constructor Summary
AbstractCacheLoader()
           
 
Method Summary
 boolean containsKey(Object key)
           This implementation delegates to CacheLoader.load(Object), to ensure that a response is returned only if the entry is not expired.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.infinispan.loaders.CacheLoader
getConfigurationClass, init, load, loadAll, start, stop
 

Constructor Detail

AbstractCacheLoader

public AbstractCacheLoader()
Method Detail

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

Google Analytics

Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.