|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.ref.Reference<T>
java.lang.ref.SoftReference<T>
ariba.util.core.SelfCleaningPool.PoolFloat<T>
public static class SelfCleaningPool.PoolFloat<T>
Nested class that wraps up an actual resource instance. It extends SoftReference, so the GC can garbage collect the resource if memory gets very tight. This means that get() may return null at any time when there is not a strong reference to the resource in a local variable or somewhere else other than the soft reference. It also maintains the time in milliseconds when the resource was last returned to the free list, so we can free them after they haven't been used for a while.
Method Summary |
---|
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 |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |