Package io.netty.handler.codec.http2
Class AbstractHttp2StreamChannel.Http2StreamChannelConfig
java.lang.Object
io.netty.channel.DefaultChannelConfig
io.netty.handler.codec.http2.AbstractHttp2StreamChannel.Http2StreamChannelConfig
- All Implemented Interfaces:
ChannelConfig
- Enclosing class:
AbstractHttp2StreamChannel
private static final class AbstractHttp2StreamChannel.Http2StreamChannelConfig
extends DefaultChannelConfig
ChannelConfig
so that the high and low writebuffer watermarks can reflect the outbound flow control
window, without having to create a new WriteBufferWaterMark
object whenever the flow control window
changes.-
Field Summary
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsMessageSizeEstimator
which is used for the channel to detect the size of a message.setMessageSizeEstimator
(MessageSizeEstimator estimator) Set theMessageSizeEstimator
which is used for the channel to detect the size of a message.setRecvByteBufAllocator
(RecvByteBufAllocator allocator) Set theRecvByteBufAllocator
which is used for the channel to allocate receive buffers.Methods inherited from class io.netty.channel.DefaultChannelConfig
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getOption, getOptions, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMaxMessagesPerWrite, setOption, setOptions, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount, validate
-
Constructor Details
-
Http2StreamChannelConfig
Http2StreamChannelConfig(Channel channel)
-
-
Method Details
-
getMessageSizeEstimator
Description copied from interface:ChannelConfig
ReturnsMessageSizeEstimator
which is used for the channel to detect the size of a message.- Specified by:
getMessageSizeEstimator
in interfaceChannelConfig
- Overrides:
getMessageSizeEstimator
in classDefaultChannelConfig
-
setMessageSizeEstimator
Description copied from interface:ChannelConfig
Set theMessageSizeEstimator
which is used for the channel to detect the size of a message.- Specified by:
setMessageSizeEstimator
in interfaceChannelConfig
- Overrides:
setMessageSizeEstimator
in classDefaultChannelConfig
-
setRecvByteBufAllocator
Description copied from interface:ChannelConfig
Set theRecvByteBufAllocator
which is used for the channel to allocate receive buffers.- Specified by:
setRecvByteBufAllocator
in interfaceChannelConfig
- Overrides:
setRecvByteBufAllocator
in classDefaultChannelConfig
-