Package com.sun.istack
Interface Pool<T>
- All Known Implementing Classes:
Pool.Impl
public interface Pool<T>
Pool of reusable objects that are indistinguishable from each other,
such as JAXB marshallers.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefault implementation that usesConcurrentLinkedQueueas the data store. -
Method Summary
-
Method Details
-
take
Gets a new object from the pool.If no object is available in the pool, this method creates a new one.
-
recycle
Returns an object back to the pool.
-