ehcache

net.sf.ehcache.constructs.blocking
Interface CacheEntryFactory

All Known Subinterfaces:
UpdatingCacheEntryFactory

public interface CacheEntryFactory

Creates objects to populate the cache.

Version:
$Id: CacheEntryFactory.java 5594 2012-05-07 16:04:31Z cdennis $
Author:
Greg Luck

Method Summary
 Object createEntry(Object key)
          Creates the cacheEntry for the given cache key.
 

Method Detail

createEntry

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:
The entry, or null if it does not exist.
Throws:
Exception - On failure creating the object.

ehcache

Copyright 2001-2016, Terracotta, Inc.