Pool<T>
public abstract static class Pool.Impl<T> extends Object implements Pool<T>
ConcurrentLinkedQueue
as the data store.
Don't rely on the fact that this class extends from ConcurrentLinkedQueue
.
Constructor | Description |
---|---|
Impl() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract T |
create() |
Creates a new instance of object.
|
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.