Pool.Impl
public interface Pool<T>
Modifier and Type | Interface | Description |
---|---|---|
static class |
Pool.Impl<T> |
Default implementation that uses
ConcurrentLinkedQueue
as the data store. |
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.
|
Copyright © 2018 Oracle Corporation. All rights reserved.