@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.
Modifier and Type | Field and Description |
---|---|
static io.prometheus.client.Histogram |
byteDistributedDuration |
Constructor and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
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) |
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
in interface io.netty.handler.codec.http2.Http2FlowController
io.netty.handler.codec.http2.Http2Exception
public io.netty.channel.ChannelHandlerContext channelHandlerContext()
channelHandlerContext
in interface io.netty.handler.codec.http2.Http2RemoteFlowController
public void initialWindowSize(int newWindowSize) throws io.netty.handler.codec.http2.Http2Exception
initialWindowSize
in interface io.netty.handler.codec.http2.Http2FlowController
io.netty.handler.codec.http2.Http2Exception
public int initialWindowSize()
initialWindowSize
in interface io.netty.handler.codec.http2.Http2FlowController
public int windowSize(io.netty.handler.codec.http2.Http2Stream stream)
windowSize
in interface io.netty.handler.codec.http2.Http2FlowController
public boolean isWritable(io.netty.handler.codec.http2.Http2Stream stream)
isWritable
in interface io.netty.handler.codec.http2.Http2RemoteFlowController
public void channelWritabilityChanged() throws io.netty.handler.codec.http2.Http2Exception
channelWritabilityChanged
in interface io.netty.handler.codec.http2.Http2RemoteFlowController
io.netty.handler.codec.http2.Http2Exception
public void updateDependencyTree(int childStreamId, int parentStreamId, short weight, boolean exclusive)
updateDependencyTree
in interface io.netty.handler.codec.http2.Http2RemoteFlowController
public void listener(io.netty.handler.codec.http2.Http2RemoteFlowController.Listener listener)
listener
in interface io.netty.handler.codec.http2.Http2RemoteFlowController
public void incrementWindowSize(io.netty.handler.codec.http2.Http2Stream stream, int delta) throws io.netty.handler.codec.http2.Http2Exception
incrementWindowSize
in interface io.netty.handler.codec.http2.Http2FlowController
io.netty.handler.codec.http2.Http2Exception
public void addFlowControlled(io.netty.handler.codec.http2.Http2Stream stream, io.netty.handler.codec.http2.Http2RemoteFlowController.FlowControlled frame)
addFlowControlled
in interface io.netty.handler.codec.http2.Http2RemoteFlowController
public boolean hasFlowControlled(io.netty.handler.codec.http2.Http2Stream stream)
hasFlowControlled
in interface io.netty.handler.codec.http2.Http2RemoteFlowController
public void writePendingBytes() throws io.netty.handler.codec.http2.Http2Exception
writePendingBytes
in interface io.netty.handler.codec.http2.Http2RemoteFlowController
io.netty.handler.codec.http2.Http2Exception
Copyright © 2023 PingCAP. All rights reserved.