Class EpollChannelConfig

    • Constructor Detail

      • EpollChannelConfig

        protected EpollChannelConfig​(io.netty.channel.Channel channel)
      • EpollChannelConfig

        protected EpollChannelConfig​(io.netty.channel.Channel channel,
                                     io.netty.channel.RecvByteBufAllocator recvByteBufAllocator)
    • Method Detail

      • getOptions

        public Map<io.netty.channel.ChannelOption<?>,​Object> getOptions()
        Specified by:
        getOptions in interface io.netty.channel.ChannelConfig
        Overrides:
        getOptions in class io.netty.channel.DefaultChannelConfig
      • getOption

        public <T> T getOption​(io.netty.channel.ChannelOption<T> option)
        Specified by:
        getOption in interface io.netty.channel.ChannelConfig
        Overrides:
        getOption in class io.netty.channel.DefaultChannelConfig
      • setOption

        public <T> boolean setOption​(io.netty.channel.ChannelOption<T> option,
                                     T value)
        Specified by:
        setOption in interface io.netty.channel.ChannelConfig
        Overrides:
        setOption in class io.netty.channel.DefaultChannelConfig
      • setConnectTimeoutMillis

        public EpollChannelConfig setConnectTimeoutMillis​(int connectTimeoutMillis)
        Specified by:
        setConnectTimeoutMillis in interface io.netty.channel.ChannelConfig
        Overrides:
        setConnectTimeoutMillis in class io.netty.channel.DefaultChannelConfig
      • setMaxMessagesPerRead

        @Deprecated
        public EpollChannelConfig setMaxMessagesPerRead​(int maxMessagesPerRead)
        Deprecated.
        Specified by:
        setMaxMessagesPerRead in interface io.netty.channel.ChannelConfig
        Overrides:
        setMaxMessagesPerRead in class io.netty.channel.DefaultChannelConfig
      • setWriteSpinCount

        public EpollChannelConfig setWriteSpinCount​(int writeSpinCount)
        Specified by:
        setWriteSpinCount in interface io.netty.channel.ChannelConfig
        Overrides:
        setWriteSpinCount in class io.netty.channel.DefaultChannelConfig
      • setAllocator

        public EpollChannelConfig setAllocator​(io.netty.buffer.ByteBufAllocator allocator)
        Specified by:
        setAllocator in interface io.netty.channel.ChannelConfig
        Overrides:
        setAllocator in class io.netty.channel.DefaultChannelConfig
      • setRecvByteBufAllocator

        public EpollChannelConfig setRecvByteBufAllocator​(io.netty.channel.RecvByteBufAllocator allocator)
        Specified by:
        setRecvByteBufAllocator in interface io.netty.channel.ChannelConfig
        Overrides:
        setRecvByteBufAllocator in class io.netty.channel.DefaultChannelConfig
      • setAutoRead

        public EpollChannelConfig setAutoRead​(boolean autoRead)
        Specified by:
        setAutoRead in interface io.netty.channel.ChannelConfig
        Overrides:
        setAutoRead in class io.netty.channel.DefaultChannelConfig
      • setWriteBufferHighWaterMark

        @Deprecated
        public EpollChannelConfig setWriteBufferHighWaterMark​(int writeBufferHighWaterMark)
        Deprecated.
        Specified by:
        setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfig
        Overrides:
        setWriteBufferHighWaterMark in class io.netty.channel.DefaultChannelConfig
      • setWriteBufferLowWaterMark

        @Deprecated
        public EpollChannelConfig setWriteBufferLowWaterMark​(int writeBufferLowWaterMark)
        Deprecated.
        Specified by:
        setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfig
        Overrides:
        setWriteBufferLowWaterMark in class io.netty.channel.DefaultChannelConfig
      • setWriteBufferWaterMark

        public EpollChannelConfig setWriteBufferWaterMark​(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
        Specified by:
        setWriteBufferWaterMark in interface io.netty.channel.ChannelConfig
        Overrides:
        setWriteBufferWaterMark in class io.netty.channel.DefaultChannelConfig
      • setMessageSizeEstimator

        public EpollChannelConfig setMessageSizeEstimator​(io.netty.channel.MessageSizeEstimator estimator)
        Specified by:
        setMessageSizeEstimator in interface io.netty.channel.ChannelConfig
        Overrides:
        setMessageSizeEstimator in class io.netty.channel.DefaultChannelConfig
      • getEpollMode

        @Deprecated
        public EpollMode getEpollMode()
        Deprecated.
        Netty always uses level-triggered mode and so this method is just a no-op.
        Return the EpollMode used. Default is EpollMode.EDGE_TRIGGERED. If you want to use DefaultChannelConfig.isAutoRead() false or DefaultChannelConfig.getMaxMessagesPerRead() and have an accurate behaviour you should use EpollMode.LEVEL_TRIGGERED.
      • setEpollMode

        @Deprecated
        public EpollChannelConfig setEpollMode​(EpollMode mode)
        Deprecated.
        Netty always uses level-triggered mode and so this method is just a no-op.
        Set the EpollMode used. Default is EpollMode.EDGE_TRIGGERED. If you want to use DefaultChannelConfig.isAutoRead() false or DefaultChannelConfig.getMaxMessagesPerRead() and have an accurate behaviour you should use EpollMode.LEVEL_TRIGGERED. Be aware this config setting can only be adjusted before the channel was registered.
      • autoReadCleared

        protected final void autoReadCleared()
        Overrides:
        autoReadCleared in class io.netty.channel.DefaultChannelConfig
      • setMaxBytesPerGatheringWrite

        protected final void setMaxBytesPerGatheringWrite​(long maxBytesPerGatheringWrite)
      • getMaxBytesPerGatheringWrite

        protected final long getMaxBytesPerGatheringWrite()