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 and Description |
---|
Impl() |
Modifier and Type | Method and 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 © 2021 JBoss by Red Hat. All rights reserved.