Class AsyncStreamingOutputPlus

All Implemented Interfaces:
Closeable, DataOutput, Flushable, AutoCloseable, DataOutputPlus, StreamingDataOutputPlus

public class AsyncStreamingOutputPlus extends AsyncChannelOutputPlus implements StreamingDataOutputPlus
A DataOutputStreamPlus that writes ASYNCHRONOUSLY to a Netty Channel. The close() and flush() methods synchronously wait for pending writes, and will propagate any exceptions encountered in writing them to the wire. The correctness of this class depends on the ChannelPromise we create against a Channel always being completed, which appears to be a guarantee provided by Netty so long as the event loop is running.