Class HttpOutput.ReadableByteChannelWritingCB

All Implemented Interfaces:
Callback, Invocable
Enclosing class:
HttpOutput

private class HttpOutput.ReadableByteChannelWritingCB extends HttpOutput.NestedChannelWriteCB
An iterating callback that will take content from a ReadableByteChannel and write it to the HttpChannel. A ByteBuffer of size HttpOutput.getBufferSize() is used that will be direct if HttpChannel.useDirectBuffers() is true. This callback is passed to the HttpChannel.write(ByteBuffer, boolean, Callback) to be notified as each buffer is written and only once all the input is consumed will the wrapped Callback.succeeded() method be called.