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

tech.ytsaurus.client.AsyncReader Maven / Gradle / Ivy

The newest version!
package tech.ytsaurus.client;

import java.io.Closeable;
import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Executor;
import java.util.function.Consumer;

public interface AsyncReader extends Closeable {
    /**
     * Read all data pass it to supplied consumer.
     *
     * @return future that is completed once all data is read or error occurred
     */
    CompletableFuture acceptAllAsync(Consumer consumer, Executor executor);

    /**
     * Low level interface: read next batch of data.
     * 

* Once reader is exhausted returned future is set with null. */ CompletableFuture> next(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy