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

io.hstream.Reader Maven / Gradle / Ivy

package io.hstream;

import java.util.List;
import java.util.concurrent.CompletableFuture;

/** The interface for the HStream shard reader */
public interface Reader extends AutoCloseable {

  /**
   * Read {@link ReceivedRecord}s from a stream shard.
   *
   * @param maxRecords the max number of the returned records
   * @return the {@link ReceivedRecord}s wrapped in a {@link CompletableFuture}
   */
  CompletableFuture> read(int maxRecords);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy