| java.lang.Object org.sakaiproject.memory.impl.MemCache org.sakaiproject.memory.impl.MultiRefCacheImpl
MultiRefCacheImpl | public class MultiRefCacheImpl extends MemCache implements MultiRefCache(Code) | |
MultiRefCacheImpl implements the MultiRefCache.
The references that each cache entry are sensitive to are kept in a separate map for easy access.
Manipulation of this map is synchronized. This map is not used for cache access, just when items are added and removed.
The cache map itself becomes synchronized when it's manipulated (not when reads occur), so this added sync. for the refs fits the existing pattern.
|
Inner Class :protected class MultiRefCacheEntry extends CacheEntry | |
Field Summary | |
protected Map | m_refs Map of reference string -> Collection of cache keys. |
Method Summary | |
protected void | addRefCachedKey(String ref, Object key) Make sure there's an entry in refs for this ref that includes this key. | public void | clear() | protected void | continueUpdate(Event event) Complete the update, given an event that we know we need to act upon. | public String | getDescription() | public boolean | isComplete() | public boolean | isComplete(String path) | public void | put(Object key, Object payload, int duration, String ref, Collection azgIds) | public void | put(Object key, Object payload, int duration) | public void | put(Object key, Object payload) | public void | remove(Object key) | public void | update(Observable o, Object arg) |
m_refs | protected Map m_refs(Code) | | Map of reference string -> Collection of cache keys.
|
addRefCachedKey | protected void addRefCachedKey(String ref, Object key)(Code) | | Make sure there's an entry in refs for this ref that includes this key.
Parameters: ref - The entity reference string. Parameters: key - The cache entry key dependent on this entity ref. |
clear | public void clear()(Code) | | |
continueUpdate | protected void continueUpdate(Event event)(Code) | | Complete the update, given an event that we know we need to act upon.
Parameters: event - The event to process. |
isComplete | public boolean isComplete()(Code) | | |
|
|