net.sf.ehcache.constructs.blocking
public class SelfPopulatingCache extends BlockingCache
Version: $Id: SelfPopulatingCache.java 191 2006-09-03 22:41:48Z gregluck $
Field Summary | |
---|---|
protected CacheEntryFactory | factory
A factory for creating entries, given a key |
Constructor Summary | |
---|---|
SelfPopulatingCache(Ehcache cache, CacheEntryFactory factory)
Creates a SelfPopulatingCache. |
Method Summary | |
---|---|
Element | get(Object key)
Looks up an entry. creating it if not found. |
void | refresh()
Refresh the elements of this cache.
|
protected void | refreshElement(Element element, Ehcache backingCache)
Refresh a single element.
|
protected void | setThreadName(String method, Object key)
Rename the thread for easier thread dump reading.
|
Parameters: element the Element to refresh backingCache the underlying Ehcache.
Throws: Exception
Parameters: method the method about to be called key the key being operated on