|
istack common utility code 2.6.1-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Pool<T>
Pool of reusable objects that are indistinguishable from each other, such as JAXB marshallers.
Nested Class Summary | |
---|---|
static class |
Pool.Impl<T>
Default implementation that uses ConcurrentLinkedQueue
as the data store. |
Method Summary | |
---|---|
void |
recycle(T t)
Returns an object back to the pool. |
T |
take()
Gets a new object from the pool. |
Method Detail |
---|
@NotNull T take()
If no object is available in the pool, this method creates a new one.
void recycle(@NotNull T t)
|
istack common utility code 2.6.1-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |