ElementT
- type of elements being pooled.@NotThreadSafe
public final class SimplePool<ElementT>
extends java.lang.Object
Constructor and Description |
---|
SimplePool(java.util.function.Supplier<ElementT> supplier,
int maxCapacity) |
Modifier and Type | Method and Description |
---|---|
ElementT |
get() |
void |
release(ElementT item) |
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.