All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.ydb.table.impl.pool.AsyncPool Maven / Gradle / Ivy

There is a newer version: 1.45.6
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy