|
Protomatter Classes v1.1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.protomatter.util.SoftReferenceCache | +--com.protomatter.util.ExpiringSoftReferenceCache
A cache that uses soft references and will also expire cache values after a given period of time.
Constructor Summary | |
ExpiringSoftReferenceCache(long timeout)
Create a new timed soft reference cache with the given timeout. |
Method Summary | |
java.lang.Object |
get(java.lang.Object key)
Get a value from the cache. |
void |
put(java.lang.Object key,
java.lang.Object val)
Put a value into the cache, possibly clobbering the old value if one exists. |
Methods inherited from class com.protomatter.util.SoftReferenceCache |
clear, clear |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpiringSoftReferenceCache(long timeout)
Method Detail |
public void put(java.lang.Object key, java.lang.Object val)
put
in class SoftReferenceCache
public java.lang.Object get(java.lang.Object key)
get
in class SoftReferenceCache
com.protomatter.util.SoftReferenceCache
|
Protomatter Classes v1.1.6 Copyright 1998-2001 Nate Sammons |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Classes v1.1.6 | http://protomatter.sourceforge.net/1.1.6 |