-
- Type Parameters:
T
- type
- 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 Classes Modifier and Type Interface Description static class
Pool.Impl<T>
Default implementation that usesConcurrentLinkedQueue
as the data store.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
recycle(T t)
Returns an object back to the pool.T
take()
Gets a new object from the pool.
-