Package org.apache.hadoop.hbase.util
Interface ObjectPool.ObjectFactory<K,V>
- Enclosing class:
- ObjectPool<K,
V>
public static interface ObjectPool.ObjectFactory<K,V>
An
ObjectFactory object is used to create new shared objects on demand.-
Method Summary
Modifier and TypeMethodDescriptioncreateObject(K key) Creates a new shared object associated with the givenkey, identified by theequalsmethod.
-
Method Details
-
createObject
Creates a new shared object associated with the givenkey, identified by theequalsmethod. This method may be simultaneously called by multiple threads with the same key, and the excessive objects are just discarded.
-