|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.jini.collection.SoftCache
public class SoftCache
Map of keys to softly-referenced values which automatically removes mappings for garbage-collected values. This is a simplified version of sun.misc.SoftCache.
Constructor Summary | |
---|---|
SoftCache()
|
Method Summary | |
---|---|
void |
clear()
Removes all associations from this map. |
Object |
get(Object key)
Returns value associated with given key, or null if none. |
Object |
put(Object key,
Object value)
Associates value with given key, returning value previously associated with key, or null if none. |
Object |
remove(Object key)
Removes association for given key, returning value previously associated with key, or null if none. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SoftCache()
Method Detail |
---|
public Object put(Object key, Object value)
public Object get(Object key)
public Object remove(Object key)
public void clear()
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |