org.opensearch.migrations.replay.datahandlers.IPacketFinalizingConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trafficReplayer Show documentation
Show all versions of trafficReplayer Show documentation
Everything opensearch migrations
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();
}