public class ObjectPool<T> extends Object
| Constructor and Description |
|---|
ObjectPool(Supplier<T> objectFactory,
Consumer<T> initializer,
int poolSize) |
| Modifier and Type | Method and Description |
|---|---|
int |
countCreated() |
int |
countDiscarded() |
T |
get() |
void |
release(T object) |
int |
size() |
Copyright © 2025. All rights reserved.