java.lang.Object
com.sun.xml.ws.db.toplink.ObjectPool<T>
- Type Parameters:
T- the type of the object to pool
Object pool allocator that leverages a
ConcurrentLinkedQueue for
synchronization.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ObjectPool
protected ObjectPool()Default constructor.
-
-
Method Details
-
allocate
Allocate an object from the pool or create a new one if we cannot get one from the queue.- Returns:
- the queued or newly-created object
-
replace
Return an object to the pool.- Parameters:
value- the object being returned
-
newInstance
Subclasses must override the object creation method.- Returns:
- a new instance of the object.
-