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.
|
Copyright © 2021 JBoss by Red Hat. All rights reserved.