@UnstableApi public class DefaultHttp2RemoteFlowController extends Object implements io.netty.handler.codec.http2.Http2RemoteFlowController
Http2RemoteFlowController.
This class is NOT thread safe. The assumption is all methods must be invoked
from a single thread. Typically this thread is the event loop thread for the ChannelHandlerContext managed by this class.
| 限定符和类型 | 字段和说明 |
|---|---|
static io.prometheus.client.Histogram |
byteDistributedDuration |
| 构造器和说明 |
|---|
DefaultHttp2RemoteFlowController(io.netty.handler.codec.http2.Http2Connection connection) |
DefaultHttp2RemoteFlowController(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.Http2RemoteFlowController.Listener listener) |
DefaultHttp2RemoteFlowController(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.StreamByteDistributor streamByteDistributor) |
DefaultHttp2RemoteFlowController(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.StreamByteDistributor streamByteDistributor,
io.netty.handler.codec.http2.Http2RemoteFlowController.Listener listener) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addFlowControlled(io.netty.handler.codec.http2.Http2Stream stream,
io.netty.handler.codec.http2.Http2RemoteFlowController.FlowControlled frame) |
io.netty.channel.ChannelHandlerContext |
channelHandlerContext() |
void |
channelHandlerContext(io.netty.channel.ChannelHandlerContext ctx)
Any queued
FlowControlled objects will be sent. |
void |
channelWritabilityChanged() |
boolean |
hasFlowControlled(io.netty.handler.codec.http2.Http2Stream stream) |
void |
incrementWindowSize(io.netty.handler.codec.http2.Http2Stream stream,
int delta) |
int |
initialWindowSize() |
void |
initialWindowSize(int newWindowSize) |
boolean |
isWritable(io.netty.handler.codec.http2.Http2Stream stream) |
void |
listener(io.netty.handler.codec.http2.Http2RemoteFlowController.Listener listener) |
void |
updateDependencyTree(int childStreamId,
int parentStreamId,
short weight,
boolean exclusive) |
int |
windowSize(io.netty.handler.codec.http2.Http2Stream stream) |
void |
writePendingBytes() |
public static final io.prometheus.client.Histogram byteDistributedDuration
public DefaultHttp2RemoteFlowController(io.netty.handler.codec.http2.Http2Connection connection)
public DefaultHttp2RemoteFlowController(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.StreamByteDistributor streamByteDistributor)
public DefaultHttp2RemoteFlowController(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.Http2RemoteFlowController.Listener listener)
public DefaultHttp2RemoteFlowController(io.netty.handler.codec.http2.Http2Connection connection,
io.netty.handler.codec.http2.StreamByteDistributor streamByteDistributor,
io.netty.handler.codec.http2.Http2RemoteFlowController.Listener listener)
public void channelHandlerContext(io.netty.channel.ChannelHandlerContext ctx)
throws io.netty.handler.codec.http2.Http2Exception
Any queued FlowControlled objects will be sent.
channelHandlerContext 在接口中 io.netty.handler.codec.http2.Http2FlowControllerio.netty.handler.codec.http2.Http2Exceptionpublic io.netty.channel.ChannelHandlerContext channelHandlerContext()
channelHandlerContext 在接口中 io.netty.handler.codec.http2.Http2RemoteFlowControllerpublic void initialWindowSize(int newWindowSize)
throws io.netty.handler.codec.http2.Http2Exception
initialWindowSize 在接口中 io.netty.handler.codec.http2.Http2FlowControllerio.netty.handler.codec.http2.Http2Exceptionpublic int initialWindowSize()
initialWindowSize 在接口中 io.netty.handler.codec.http2.Http2FlowControllerpublic int windowSize(io.netty.handler.codec.http2.Http2Stream stream)
windowSize 在接口中 io.netty.handler.codec.http2.Http2FlowControllerpublic boolean isWritable(io.netty.handler.codec.http2.Http2Stream stream)
isWritable 在接口中 io.netty.handler.codec.http2.Http2RemoteFlowControllerpublic void channelWritabilityChanged()
throws io.netty.handler.codec.http2.Http2Exception
channelWritabilityChanged 在接口中 io.netty.handler.codec.http2.Http2RemoteFlowControllerio.netty.handler.codec.http2.Http2Exceptionpublic void updateDependencyTree(int childStreamId,
int parentStreamId,
short weight,
boolean exclusive)
updateDependencyTree 在接口中 io.netty.handler.codec.http2.Http2RemoteFlowControllerpublic void listener(io.netty.handler.codec.http2.Http2RemoteFlowController.Listener listener)
listener 在接口中 io.netty.handler.codec.http2.Http2RemoteFlowControllerpublic void incrementWindowSize(io.netty.handler.codec.http2.Http2Stream stream,
int delta)
throws io.netty.handler.codec.http2.Http2Exception
incrementWindowSize 在接口中 io.netty.handler.codec.http2.Http2FlowControllerio.netty.handler.codec.http2.Http2Exceptionpublic void addFlowControlled(io.netty.handler.codec.http2.Http2Stream stream,
io.netty.handler.codec.http2.Http2RemoteFlowController.FlowControlled frame)
addFlowControlled 在接口中 io.netty.handler.codec.http2.Http2RemoteFlowControllerpublic boolean hasFlowControlled(io.netty.handler.codec.http2.Http2Stream stream)
hasFlowControlled 在接口中 io.netty.handler.codec.http2.Http2RemoteFlowControllerpublic void writePendingBytes()
throws io.netty.handler.codec.http2.Http2Exception
writePendingBytes 在接口中 io.netty.handler.codec.http2.Http2RemoteFlowControllerio.netty.handler.codec.http2.Http2ExceptionCopyright © 2023 PingCAP. All rights reserved.