Class KQueueServerChannelConfig

java.lang.Object
io.netty.channel.DefaultChannelConfig
io.netty.channel.kqueue.KQueueChannelConfig
io.netty.channel.kqueue.KQueueServerChannelConfig
All Implemented Interfaces:
io.netty.channel.ChannelConfig, io.netty.channel.socket.ServerSocketChannelConfig
Direct Known Subclasses:
KQueueServerSocketChannelConfig

@UnstableApi public class KQueueServerChannelConfig extends KQueueChannelConfig implements io.netty.channel.socket.ServerSocketChannelConfig
  • Method Details

    • getOptions

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

      public <T> T getOption(io.netty.channel.ChannelOption<T> option)
      Specified by:
      getOption in interface io.netty.channel.ChannelConfig
      Overrides:
      getOption in class KQueueChannelConfig
    • 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 KQueueChannelConfig
    • isReuseAddress

      public boolean isReuseAddress()
      Specified by:
      isReuseAddress in interface io.netty.channel.socket.ServerSocketChannelConfig
    • setReuseAddress

      public KQueueServerChannelConfig setReuseAddress(boolean reuseAddress)
      Specified by:
      setReuseAddress in interface io.netty.channel.socket.ServerSocketChannelConfig
    • getReceiveBufferSize

      public int getReceiveBufferSize()
      Specified by:
      getReceiveBufferSize in interface io.netty.channel.socket.ServerSocketChannelConfig
    • setReceiveBufferSize

      public KQueueServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
      Specified by:
      setReceiveBufferSize in interface io.netty.channel.socket.ServerSocketChannelConfig
    • getBacklog

      public int getBacklog()
      Specified by:
      getBacklog in interface io.netty.channel.socket.ServerSocketChannelConfig
    • setBacklog

      public KQueueServerChannelConfig setBacklog(int backlog)
      Specified by:
      setBacklog in interface io.netty.channel.socket.ServerSocketChannelConfig
    • isTcpFastOpen

      public boolean isTcpFastOpen()
      Returns true if TCP FastOpen is enabled.
      See Also:
    • setTcpFastOpen

      public KQueueServerChannelConfig setTcpFastOpen(boolean enableTcpFastOpen)
      Enables TCP FastOpen on the server channel. If the underlying os doesn't support TCP_FASTOPEN setting this has no effect. This has to be set before doing listen on the socket otherwise this takes no effect.
      Parameters:
      enableTcpFastOpen - true if TCP FastOpen should be enabled for incomming connections.
      See Also:
    • setRcvAllocTransportProvidesGuess

      public KQueueServerChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
      Description copied from class: KQueueChannelConfig
      If this is true then the RecvByteBufAllocator.Handle.guess() will be overridden to always attempt to read as many bytes as kqueue says are available.
      Overrides:
      setRcvAllocTransportProvidesGuess in class KQueueChannelConfig
    • setPerformancePreferences

      public KQueueServerChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
      Specified by:
      setPerformancePreferences in interface io.netty.channel.socket.ServerSocketChannelConfig
    • setConnectTimeoutMillis

      public KQueueServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
      Specified by:
      setConnectTimeoutMillis in interface io.netty.channel.ChannelConfig
      Specified by:
      setConnectTimeoutMillis in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setConnectTimeoutMillis in class KQueueChannelConfig
    • setMaxMessagesPerRead

      @Deprecated public KQueueServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
      Deprecated.
      Specified by:
      setMaxMessagesPerRead in interface io.netty.channel.ChannelConfig
      Specified by:
      setMaxMessagesPerRead in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setMaxMessagesPerRead in class KQueueChannelConfig
    • setWriteSpinCount

      public KQueueServerChannelConfig setWriteSpinCount(int writeSpinCount)
      Specified by:
      setWriteSpinCount in interface io.netty.channel.ChannelConfig
      Specified by:
      setWriteSpinCount in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setWriteSpinCount in class KQueueChannelConfig
    • setAllocator

      public KQueueServerChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
      Specified by:
      setAllocator in interface io.netty.channel.ChannelConfig
      Specified by:
      setAllocator in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setAllocator in class KQueueChannelConfig
    • setRecvByteBufAllocator

      public KQueueServerChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
      Specified by:
      setRecvByteBufAllocator in interface io.netty.channel.ChannelConfig
      Specified by:
      setRecvByteBufAllocator in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setRecvByteBufAllocator in class KQueueChannelConfig
    • setAutoRead

      public KQueueServerChannelConfig setAutoRead(boolean autoRead)
      Specified by:
      setAutoRead in interface io.netty.channel.ChannelConfig
      Specified by:
      setAutoRead in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setAutoRead in class KQueueChannelConfig
    • setWriteBufferHighWaterMark

      @Deprecated public KQueueServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
      Deprecated.
      Specified by:
      setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfig
      Specified by:
      setWriteBufferHighWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setWriteBufferHighWaterMark in class KQueueChannelConfig
    • setWriteBufferLowWaterMark

      @Deprecated public KQueueServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
      Deprecated.
      Specified by:
      setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfig
      Specified by:
      setWriteBufferLowWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setWriteBufferLowWaterMark in class KQueueChannelConfig
    • setWriteBufferWaterMark

      public KQueueServerChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
      Specified by:
      setWriteBufferWaterMark in interface io.netty.channel.ChannelConfig
      Specified by:
      setWriteBufferWaterMark in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setWriteBufferWaterMark in class KQueueChannelConfig
    • setMessageSizeEstimator

      public KQueueServerChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
      Specified by:
      setMessageSizeEstimator in interface io.netty.channel.ChannelConfig
      Specified by:
      setMessageSizeEstimator in interface io.netty.channel.socket.ServerSocketChannelConfig
      Overrides:
      setMessageSizeEstimator in class KQueueChannelConfig