public interface Pool<T>
Modifier and Type | Interface and Description |
---|---|
static class |
Pool.Impl<T>
Default implementation that uses
ConcurrentLinkedQueue
as the data store. |
Modifier and Type | Method and Description |
---|---|
void |
recycle(T t)
Returns an object back to the pool.
|
T |
take()
Gets a new object from the pool.
|