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
FieldsFields inherited from class io.netty.channel.DefaultChannelConfig
channel -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnsMessageSizeEstimatorwhich is used for the channel to detect the size of a message.<T> TgetOption(ChannelOption<T> option) Return the value of the givenChannelOptionMap<ChannelOption<?>, Object> Return all setChannelOption's.setMessageSizeEstimator(MessageSizeEstimator estimator) Set theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.<T> booleansetOption(ChannelOption<T> option, T value) Sets a configuration property with the specified name and value.setRecvByteBufAllocator(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, getMaxMessagesPerWrite, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMaxMessagesPerWrite, setOptions, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount, validate
-
Field Details
-
autoStreamFlowControl
volatile boolean autoStreamFlowControl
-
-
Constructor Details
-
Http2StreamChannelConfig
Http2StreamChannelConfig(Channel channel)
-
-
Method Details
-
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
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
Description copied from interface:ChannelConfigSet theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.- Specified by:
setRecvByteBufAllocatorin interfaceChannelConfig- Overrides:
setRecvByteBufAllocatorin classDefaultChannelConfig
-
getOptions
Description copied from interface:ChannelConfigReturn all setChannelOption's.- Specified by:
getOptionsin interfaceChannelConfig- Overrides:
getOptionsin classDefaultChannelConfig
-
getOption
Description copied from interface:ChannelConfigReturn the value of the givenChannelOption- Specified by:
getOptionin interfaceChannelConfig- Overrides:
getOptionin classDefaultChannelConfig
-
setOption
Description copied from interface:ChannelConfigSets a configuration property with the specified name and value. To override this method properly, you must call the super class:public boolean setOption(ChannelOption<T> option, T value) { if (super.setOption(option, value)) { return true; } if (option.equals(additionalOption)) { .... return true; } return false; }- Specified by:
setOptionin interfaceChannelConfig- Overrides:
setOptionin classDefaultChannelConfig- Returns:
trueif and only if the property has been set
-