Top Description Methods
net.sf.ehcache.constructs.blocking

public Interface CacheEntryFactory

Known Direct Subinterfaces
net.sf.ehcache.constructs.blocking.UpdatingCacheEntryFactory

Creates objects to populate the cache.
Author
Greg Luck
Version
$Id: CacheEntryFactory.java 5594 2012-05-07 16:04:31Z cdennis $

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

The entry, or null if it does not exist.
createEntry
(Object key)

Creates the cacheEntry for the given cache key.

Method Detail

createEntryback to summary
public Object createEntry(Object key) throws Exception

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

Returns:Object

The entry, or null if it does not exist.

Exceptions
Exception:
On failure creating the object.