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.
|
static interface |
Http2RemoteFlowController.Listener
Listener to the number of flow-controlled bytes written per stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFlowControlled(Http2Stream stream,
Http2RemoteFlowController.FlowControlled payload)
Queues a payload for transmission to the remote endpoint.
|
ChannelHandlerContext |
channelHandlerContext()
Get the
ChannelHandlerContext for which to apply flow control on. |
Http2RemoteFlowController.Listener |
listener()
Get the current listener to flow-control events.
|
void |
listener(Http2RemoteFlowController.Listener listener)
Set the active listener on the flow-controller.
|
void |
writePendingBytes()
Write all data pending in the flow controller up to the flow-control limits.
|
channelHandlerContext, incrementWindowSize, initialWindowSize, initialWindowSize, initialWindowSize, windowSizeChannelHandlerContext channelHandlerContext()
ChannelHandlerContext for which to apply flow control on.
This is intended for us by Http2RemoteFlowController.FlowControlled implementations only. Use with caution.
ChannelHandlerContext for which to apply flow control on.void addFlowControlled(Http2Stream stream, Http2RemoteFlowController.FlowControlled payload)
Writes do not actually occur until writePendingBytes() is called.
stream - the subject stream. Must not be the connection stream object.payload - payload to write subject to flow-control accounting and ordering rules.void writePendingBytes()
throws Http2Exception
Http2Exception - throws if a protocol-related error occurred.void listener(Http2RemoteFlowController.Listener listener)
listener - to notify when the a write occurs, can be null.Http2RemoteFlowController.Listener listener()
null if one is not set.Copyright © 2008–2015 The Netty Project. All rights reserved.