Class WeakObjectPool<K,V>

java.lang.Object
org.apache.hadoop.hbase.util.ObjectPool<K,V>
org.apache.hadoop.hbase.util.WeakObjectPool<K,V>

@Private public class WeakObjectPool<K,V> extends ObjectPool<K,V>
A WeakReference based shared object pool. The objects are kept in weak references and associated with keys which are identified by the equals method. The objects are created by ObjectPool.ObjectFactory on demand. The object creation is expected to be lightweight, and the objects may be excessively created and discarded. Thread safe.