Package com.yandex.ydb.table.impl.pool
Interface AsyncPool<T>
-
- All Known Implementing Classes:
FixedAsyncPool
public interface AsyncPool<T>- Author:
- Sergey Polovko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<T>acquire(Duration timeout)Zero timeout will be treated as "return object immediately or fail".voidclose()intgetAcquiredCount()intgetIdleCount()intgetPendingAcquireCount()voidrelease(T object)
-
-
-
Method Detail
-
acquire
CompletableFuture<T> acquire(Duration timeout)
Zero timeout will be treated as "return object immediately or fail".
-
release
void release(T object)
-
close
void close()
-
getAcquiredCount
int getAcquiredCount()
-
getIdleCount
int getIdleCount()
-
getPendingAcquireCount
int getPendingAcquireCount()
-
-