org.mmbase.module.gui.html
Class MultilevelCacheHandler

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--org.mmbase.util.LRUHashtable
                    |
                    +--org.mmbase.module.gui.html.MultilevelCacheHandler
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class MultilevelCacheHandler
extends LRUHashtable

This object handles cache multilevel tag cache requests. it removed invalid lines adding listeners to builders used in the multilevel query's

Author:
Daniel Ockeloen
See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Constructor Summary
MultilevelCacheHandler(MMBase mmb, int size)
           
 
Method Summary
 void callbackRemove(java.lang.Object key)
           
 java.lang.Object get(java.lang.Object key)
          Retrieve an element from the table.
 java.lang.Object put(java.lang.Object hash, java.lang.Object o, java.util.Vector types, StringTagger tagger)
           
 java.lang.Object remove(java.lang.Object key)
          Remove an element from the table.
 
Methods inherited from class org.mmbase.util.LRUHashtable
clear, clone, contains, containsKey, elements, getCount, getHits, getMisses, getOrderedElements, getOrderedElements, getPuts, getRatio, getSize, getStats, isEmpty, keys, put, setSize, size, toString, toString
 
Methods inherited from class java.util.Hashtable
containsValue, entrySet, equals, hashCode, keySet, putAll, rehash, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultilevelCacheHandler

public MultilevelCacheHandler(MMBase mmb,
                              int size)
Method Detail

put

public java.lang.Object put(java.lang.Object hash,
                            java.lang.Object o,
                            java.util.Vector types,
                            StringTagger tagger)

get

public java.lang.Object get(java.lang.Object key)
Description copied from class: LRUHashtable
Retrieve an element from the table.
Overrides:
get in class LRUHashtable
Following copied from class: org.mmbase.util.LRUHashtable
Returns:
the value of the element, or null if it could not be found

remove

public java.lang.Object remove(java.lang.Object key)
Description copied from class: LRUHashtable
Remove an element from the table.
Overrides:
remove in class LRUHashtable
Following copied from class: org.mmbase.util.LRUHashtable
Returns:
the original value of the element if it existed, null if it could not be found

callbackRemove

public void callbackRemove(java.lang.Object key)


MMBase 2002