|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.cache.Cache
org.mmbase.applications.media.cache.URLCache
A cache for URLS requested in the MediaFragment builder. This cache can easily be extended in such a way it can cache more requests.
| Nested Class Summary |
| Nested classes inherited from class java.util.Map |
Map.Entry |
| Field Summary |
| Fields inherited from class org.mmbase.cache.Cache |
maxEntrySize |
| Method Summary | |
void |
clear()
|
static URLCache |
getCache()
|
String |
getDescription()
Gives a description for this cache type. |
String |
getName()
Returns a name for this cache type. |
void |
nodeChange(String nodeNumber)
Invalidates cache entries based on the node that changes |
void |
put(String key,
String result,
Set objects)
put an entry in the cache |
static String |
toKey(MMObjectNode mediaFragment,
Map info)
creates a key based of the media fragment number and the user information |
| Methods inherited from class org.mmbase.cache.Cache |
checkCachePolicy, contains, containsKey, containsValue, entrySet, equals, get, getByteSize, getByteSize, getCache, getCaches, getCheapByteSize, getCount, getDefaultMaxEntrySize, getHits, getMaxEntrySize, getMisses, getPuts, getRatio, getStats, getTotalByteSize, hashCode, isActive, isEmpty, keySet, main, maxSize, put, putAll, putCache, putCache, remove, setActive, setMaxSize, size, toString, values |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static URLCache getCache()
public static String toKey(MMObjectNode mediaFragment,
Map info)
mediaFragment - fragment to be cachedinfo - user information to be cached
public void put(String key,
String result,
Set objects)
key - cache keyresult - cache resultobjects - the objects that can invalidate the cachepublic void clear()
clear in interface Mapclear in class CacheMap.clear()public void nodeChange(String nodeNumber)
nodeNumber - number of node that changespublic String getName()
Cache
getName in class Cachepublic String getDescription()
Cache
getDescription in class Cache
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||