T - The type of elements in this pool.public interface ElasticPool<T>
| Modifier and Type | Method and Description |
|---|---|
T |
acquire()
This can be called by single thread only.
|
void |
forEach(Consumer<T> consumer) |
int |
maxUsed() |
int |
minUsed() |
void |
release(T object)
Can be called by any thread.
|
void |
reserve(int capacity) |
void |
resetStats() |
T acquire()
void release(T object)
object - Returned object.void reserve(int capacity)
int minUsed()
int maxUsed()
void resetStats()
Copyright © 2019 JBoss by Red Hat. All rights reserved.