net.sf.ehcache.constructs.blocking

Interface CacheEntryFactory

public interface CacheEntryFactory

Creates objects to populate the cache.

Version: $Id: CacheEntryFactory.java 124 2006-06-11 13:44:17Z gregluck $

Author: Greg Luck

Method Summary
ObjectcreateEntry(Object key)
Creates the cacheEntry for the given cache key. ehcache requires cache entries to be serializable.

Method Detail

createEntry

public Object createEntry(Object key)
Creates the cacheEntry for the given cache key. ehcache requires cache entries to be serializable. Note that this method must be thread safe.

Returns: The entry, or null if it does not exist.

Throws: Exception On failure creating the object.