Class DefaultHttp2ConnectionEncoder.FlowControlledData

java.lang.Object
io.netty.handler.codec.http2.DefaultHttp2ConnectionEncoder.FlowControlledBase
io.netty.handler.codec.http2.DefaultHttp2ConnectionEncoder.FlowControlledData
All Implemented Interfaces:
ChannelFutureListener, Http2RemoteFlowController.FlowControlled, GenericFutureListener<ChannelFuture>, EventListener
Enclosing class:
DefaultHttp2ConnectionEncoder

private final class DefaultHttp2ConnectionEncoder.FlowControlledData extends DefaultHttp2ConnectionEncoder.FlowControlledBase
Wrap a DATA frame so it can be written subject to flow-control. Note that this implementation assumes it only writes padding once for the entire payload as opposed to writing it once per-frame. This makes the size() calculation deterministic thereby greatly simplifying the implementation.

If frame-splitting is required to fit within max-frame-size and flow-control constraints we ensure that the passed promise is not completed until last frame write.