Class SoftObjectPool<K,V>

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

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