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

org.opensearch.migrations.replay.datahandlers.IPacketFinalizingConsumer Maven / Gradle / Ivy

There is a newer version: 0.2.0.4
Show newest version
package org.opensearch.migrations.replay.datahandlers;

import org.opensearch.migrations.replay.util.TrackedFuture;

/**
 * This class consumes arrays of bytes or ByteBufs, potentially asynchronously,
 * whose completion is signaled via the CompletableFuture that is returned.
 * When the caller has pushed all the data that they're interested in pushing,
 * finalizeRequest() should be called, which also returns a CompletableFuture to
 * indicate that all previous consumeBytes() have finished.
 */
public interface IPacketFinalizingConsumer extends IPacketConsumer {

    TrackedFuture finalizeRequest();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy