ariba.util.core
Class SelfCleaningPool.PoolFloat<T>

java.lang.Object
  extended by java.lang.ref.Reference<T>
      extended by java.lang.ref.SoftReference<T>
          extended by ariba.util.core.SelfCleaningPool.PoolFloat<T>
Enclosing class:
SelfCleaningPool<T>

public static class SelfCleaningPool.PoolFloat<T>
extends java.lang.ref.SoftReference<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
 



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.