public interface AsyncPool<T>
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<T> |
acquire(Duration timeout)
Zero timeout will be treated as "return object immediately or fail".
|
void |
close() |
int |
getAcquiredCount() |
int |
getIdleCount() |
int |
getPendingAcquireCount() |
void |
release(T object) |
CompletableFuture<T> acquire(Duration timeout)
void release(T object)
void close()
int getAcquiredCount()
int getIdleCount()
int getPendingAcquireCount()
Copyright © 2021. All rights reserved.