com.yandex.ydb.table.impl.pool.AsyncPool Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
Show all versions of ydb-sdk-jdbc-uberjar Show documentation
JDBC client implementation over Table client, single jar
package com.yandex.ydb.table.impl.pool;
import java.time.Duration;
import java.util.concurrent.CompletableFuture;
/**
* @author Sergey Polovko
*/
public interface AsyncPool {
/**
* Zero timeout will be treated as "return object immediately or fail".
*/
CompletableFuture acquire(Duration timeout);
void release(T object);
void delete(T object);
void close();
int getAcquiredCount();
int getIdleCount();
int getPendingAcquireCount();
}