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
ChannelConfigso that the high and low writebuffer watermarks can reflect the outbound flow control window, without having to create a newWriteBufferWaterMarkobject whenever the flow control window changes.
-
-
Field Summary
-
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel
-
-
Constructor Summary
Constructors Constructor Description Http2StreamChannelConfig(Channel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageSizeEstimatorgetMessageSizeEstimator()ReturnsMessageSizeEstimatorwhich is used for the channel to detect the size of a message.ChannelConfigsetMessageSizeEstimator(MessageSizeEstimator estimator)Set theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.ChannelConfigsetRecvByteBufAllocator(RecvByteBufAllocator allocator)Set theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.-
Methods inherited from class io.netty.channel.DefaultChannelConfig
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getOption, getOptions, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setOption, setOptions, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount, validate
-
-
-
-
Constructor Detail
-
Http2StreamChannelConfig
Http2StreamChannelConfig(Channel channel)
-
-
Method Detail
-
getMessageSizeEstimator
public MessageSizeEstimator getMessageSizeEstimator()
Description copied from interface:ChannelConfigReturnsMessageSizeEstimatorwhich is used for the channel to detect the size of a message.- Specified by:
getMessageSizeEstimatorin interfaceChannelConfig- Overrides:
getMessageSizeEstimatorin classDefaultChannelConfig
-
setMessageSizeEstimator
public ChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator)
Description copied from interface:ChannelConfigSet theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.- Specified by:
setMessageSizeEstimatorin interfaceChannelConfig- Overrides:
setMessageSizeEstimatorin classDefaultChannelConfig
-
setRecvByteBufAllocator
public ChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Description copied from interface:ChannelConfigSet theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.- Specified by:
setRecvByteBufAllocatorin interfaceChannelConfig- Overrides:
setRecvByteBufAllocatorin classDefaultChannelConfig
-
-