public static interface ObjectPool.ObjectFactory<K,V>
ObjectFactory
object is used to create
new shared objects on demand.Modifier and Type | Method and Description |
---|---|
V |
createObject(K key)
Creates a new shared object associated with the given
key ,
identified by the equals method. |
V createObject(K key)
key
,
identified by the equals
method.
This method may be simultaneously called by multiple threads
with the same key, and the excessive objects are just discarded.Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.