|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractMap | +--java.util.HashMap | +--weblogicx.jsp.tags.BubblingCache
This cache uses a simple algorithm to keep the most often used entries near the top and to recycle those entries which are not used often.
Constructor Summary | |
BubblingCache()
|
|
BubblingCache(int size)
Create an LRU cache of a particular maximum size. |
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
When we get an object from the cache, swap its position with its neighbor, moving it up the list towards the top. |
static void |
main(java.lang.String[] args)
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
When we put an object in the cache either bubble it, if it already in the cache, or drop the bottom of the bubbler and replace it with this object. |
void |
readExternal(java.io.ObjectInput oi)
|
java.lang.Object |
remove(java.lang.Object key)
Remove a value from the cache. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput oo)
|
Methods inherited from class java.util.HashMap |
clear,
clone,
containsKey,
containsValue,
entrySet,
isEmpty,
keySet,
putAll,
size,
values |
Methods inherited from class java.util.AbstractMap |
equals,
hashCode |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public BubblingCache(int size)
public BubblingCache()
Method Detail |
public java.lang.Object get(java.lang.Object key)
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
public java.lang.Object remove(java.lang.Object key)
public java.lang.String toString()
public void writeExternal(java.io.ObjectOutput oo) throws java.io.IOException
public void readExternal(java.io.ObjectInput oi) throws java.io.IOException, java.lang.ClassNotFoundException
public static void main(java.lang.String[] args) throws java.lang.Exception
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |