<R> java.util.Optional<R> |
PoolTap.apply(Timeout timeout,
java.util.function.Function<T,R> function) |
Claim an object from the pool and apply the given function to it, returning
the result and releasing the object back to the pool.
|
boolean |
Completion.await(Timeout timeout) |
Causes the current thread to wait until the completion is finished,
or the thread is interrupted , or the specified
waiting time elapses.
|
abstract T |
PoolTap.claim(Timeout timeout) |
Claim the exclusive rights until released, to an object in the pool.
|
boolean |
PoolTap.supply(Timeout timeout,
java.util.function.Consumer<T> consumer) |
Claim an object from the pool and supply it to the given consumer, and then
release it back to the pool.
|