|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ref.Reference
java.lang.ref.SoftReference
org.vrspace.neurogrid.SoftCache.SoftValue
Internal class to allow for easy removal of key-value pair when value has been reclaimed from SoftReference
Constructor Summary | |
SoftCache.SoftValue(java.lang.Object key,
java.lang.Object value,
java.lang.ref.ReferenceQueue rq)
SoftValue constructor |
Method Summary | |
java.lang.Object |
getKey()
Get the actual object |
Methods inherited from class java.lang.ref.SoftReference |
get |
Methods inherited from class java.lang.ref.Reference |
clear, enqueue, isEnqueued |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SoftCache.SoftValue(java.lang.Object key, java.lang.Object value, java.lang.ref.ReferenceQueue rq)
key
- the key used to referencevalue
- the object we are actually cachingrq
- a reference queues, to which registered reference objects
are appended by the garbage collector after the appropriate
reachability changes are detected.Method Detail |
public java.lang.Object getKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |