| Constructor and Description |
|---|
Pool(int maxSize,
Consumer<T> cleaner,
Supplier<T> supplier) |
| Modifier and Type | Method and Description |
|---|---|
T |
borrow()
Use this to instantiate or return objects from the pool
|
void |
release(T object)
Return objects to the pool, they will be either reused or ignored by the max size
|
Copyright © 2022 The Apache Software Foundation. All rights reserved.