public interface Http2RemoteFlowController extends Http2FlowController
Http2FlowController
for controlling the flow of outbound DATA
frames to the remote
endpoint.Modifier and Type | Interface and Description |
---|---|
static interface |
Http2RemoteFlowController.FlowControlled
Implementations of this interface are used to progressively write chunks of the underlying
payload to the stream.
|
Modifier and Type | Method and Description |
---|---|
void |
sendFlowControlled(ChannelHandlerContext ctx,
Http2Stream stream,
Http2RemoteFlowController.FlowControlled payload)
Writes or queues a payload for transmission to the remote endpoint.
|
incrementWindowSize, initialWindowSize, initialWindowSize, windowSize
void sendFlowControlled(ChannelHandlerContext ctx, Http2Stream stream, Http2RemoteFlowController.FlowControlled payload)
Manually flushing the ChannelHandlerContext
is not required, since the flow
controller will flush as appropriate.
ctx
- the context from the handler.stream
- the subject stream. Must not be the connection stream object.payload
- payload to write subject to flow-control accounting and ordering rules.Copyright © 2008–2015 The Netty Project. All rights reserved.