package software.amazon.awssdk.eventstreamrpc; import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage; import java.util.concurrent.CompletableFuture; /** * Interface for stream responses */ public interface StreamResponse extends StreamEventPublisher { /** * Completable future indicating flush of the request that initiated the stream operation * * @return Completable future indicating flush of the request that initiated the stream operation */ CompletableFuture getRequestFlushFuture(); /** * Completable future for retrieving the initial-response of the stream operation * * @return Completable future for retrieving the initial-response of the stream operation */ CompletableFuture getResponse(); /** * Tests if the stream is closed * @return True if the stream is closed */ boolean isClosed(); }