|
Protomatter Software v1.1.7 | |||||||||
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 Software v1.1.7 Copyright 1998-2002 Nate Sammons |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Protomatter Software v1.1.7 | http://protomatter.sourceforge.net/1.1.7 |