Class AsyncMessageOutputPlus

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

public class AsyncMessageOutputPlus extends AsyncChannelOutputPlus
A DataOutputStreamPlus that writes ASYNCHRONOUSLY to a Netty Channel. Intended as single use, to write one (large) message. 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.