Class KQueueDatagramChannelConfig

java.lang.Object
io.netty.channel.DefaultChannelConfig
io.netty.channel.kqueue.KQueueChannelConfig
io.netty.channel.kqueue.KQueueDatagramChannelConfig
All Implemented Interfaces:
io.netty.channel.ChannelConfig, io.netty.channel.socket.DatagramChannelConfig

@UnstableApi public final class KQueueDatagramChannelConfig extends KQueueChannelConfig implements io.netty.channel.socket.DatagramChannelConfig
  • 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
    • isReusePort

      public boolean isReusePort()
      Returns true if the SO_REUSEPORT option is set.
    • setReusePort

      public KQueueDatagramChannelConfig setReusePort(boolean reusePort)
      Set the SO_REUSEPORT option on the underlying Channel. This will allow to bind multiple KQueueSocketChannels to the same port and so accept connections with multiple threads. Be aware this method needs be called before AbstractChannel.bind(java.net.SocketAddress) to have any affect.
    • setRcvAllocTransportProvidesGuess

      public KQueueDatagramChannelConfig 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
    • setMessageSizeEstimator

      public KQueueDatagramChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
      Specified by:
      setMessageSizeEstimator in interface io.netty.channel.ChannelConfig
      Specified by:
      setMessageSizeEstimator in interface io.netty.channel.socket.DatagramChannelConfig
      Overrides:
      setMessageSizeEstimator in class KQueueChannelConfig
    • setWriteBufferLowWaterMark

      @Deprecated public KQueueDatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
      Deprecated.
      Specified by:
      setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfig
      Overrides:
      setWriteBufferLowWaterMark in class KQueueChannelConfig
    • setWriteBufferHighWaterMark

      @Deprecated public KQueueDatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
      Deprecated.
      Specified by:
      setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfig
      Overrides:
      setWriteBufferHighWaterMark in class KQueueChannelConfig
    • setWriteBufferWaterMark

      public KQueueDatagramChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
      Specified by:
      setWriteBufferWaterMark in interface io.netty.channel.ChannelConfig
      Specified by:
      setWriteBufferWaterMark in interface io.netty.channel.socket.DatagramChannelConfig
      Overrides:
      setWriteBufferWaterMark in class KQueueChannelConfig
    • setAutoClose

      public KQueueDatagramChannelConfig setAutoClose(boolean autoClose)
      Specified by:
      setAutoClose in interface io.netty.channel.ChannelConfig
      Specified by:
      setAutoClose in interface io.netty.channel.socket.DatagramChannelConfig
      Overrides:
      setAutoClose in class io.netty.channel.DefaultChannelConfig
    • setAutoRead

      public KQueueDatagramChannelConfig setAutoRead(boolean autoRead)
      Specified by:
      setAutoRead in interface io.netty.channel.ChannelConfig
      Specified by:
      setAutoRead in interface io.netty.channel.socket.DatagramChannelConfig
      Overrides:
      setAutoRead in class KQueueChannelConfig
    • setRecvByteBufAllocator

      public KQueueDatagramChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
      Specified by:
      setRecvByteBufAllocator in interface io.netty.channel.ChannelConfig
      Specified by:
      setRecvByteBufAllocator in interface io.netty.channel.socket.DatagramChannelConfig
      Overrides:
      setRecvByteBufAllocator in class KQueueChannelConfig
    • setWriteSpinCount

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

      public KQueueDatagramChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
      Specified by:
      setAllocator in interface io.netty.channel.ChannelConfig
      Specified by:
      setAllocator in interface io.netty.channel.socket.DatagramChannelConfig
      Overrides:
      setAllocator in class KQueueChannelConfig
    • setConnectTimeoutMillis

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

      @Deprecated public KQueueDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
      Deprecated.
      Specified by:
      setMaxMessagesPerRead in interface io.netty.channel.ChannelConfig
      Specified by:
      setMaxMessagesPerRead in interface io.netty.channel.socket.DatagramChannelConfig
      Overrides:
      setMaxMessagesPerRead in class KQueueChannelConfig
    • getSendBufferSize

      public int getSendBufferSize()
      Specified by:
      getSendBufferSize in interface io.netty.channel.socket.DatagramChannelConfig
    • setSendBufferSize

      public KQueueDatagramChannelConfig setSendBufferSize(int sendBufferSize)
      Specified by:
      setSendBufferSize in interface io.netty.channel.socket.DatagramChannelConfig
    • getReceiveBufferSize

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

      public KQueueDatagramChannelConfig setReceiveBufferSize(int receiveBufferSize)
      Specified by:
      setReceiveBufferSize in interface io.netty.channel.socket.DatagramChannelConfig
    • getTrafficClass

      public int getTrafficClass()
      Specified by:
      getTrafficClass in interface io.netty.channel.socket.DatagramChannelConfig
    • setTrafficClass

      public KQueueDatagramChannelConfig setTrafficClass(int trafficClass)
      Specified by:
      setTrafficClass in interface io.netty.channel.socket.DatagramChannelConfig
    • isReuseAddress

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

      public KQueueDatagramChannelConfig setReuseAddress(boolean reuseAddress)
      Specified by:
      setReuseAddress in interface io.netty.channel.socket.DatagramChannelConfig
    • isBroadcast

      public boolean isBroadcast()
      Specified by:
      isBroadcast in interface io.netty.channel.socket.DatagramChannelConfig
    • setBroadcast

      public KQueueDatagramChannelConfig setBroadcast(boolean broadcast)
      Specified by:
      setBroadcast in interface io.netty.channel.socket.DatagramChannelConfig
    • isLoopbackModeDisabled

      public boolean isLoopbackModeDisabled()
      Specified by:
      isLoopbackModeDisabled in interface io.netty.channel.socket.DatagramChannelConfig
    • setLoopbackModeDisabled

      public io.netty.channel.socket.DatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled)
      Specified by:
      setLoopbackModeDisabled in interface io.netty.channel.socket.DatagramChannelConfig
    • getTimeToLive

      public int getTimeToLive()
      Specified by:
      getTimeToLive in interface io.netty.channel.socket.DatagramChannelConfig
    • setTimeToLive

      public KQueueDatagramChannelConfig setTimeToLive(int ttl)
      Specified by:
      setTimeToLive in interface io.netty.channel.socket.DatagramChannelConfig
    • getInterface

      public InetAddress getInterface()
      Specified by:
      getInterface in interface io.netty.channel.socket.DatagramChannelConfig
    • setInterface

      public KQueueDatagramChannelConfig setInterface(InetAddress interfaceAddress)
      Specified by:
      setInterface in interface io.netty.channel.socket.DatagramChannelConfig
    • getNetworkInterface

      public NetworkInterface getNetworkInterface()
      Specified by:
      getNetworkInterface in interface io.netty.channel.socket.DatagramChannelConfig
    • setNetworkInterface

      public KQueueDatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface)
      Specified by:
      setNetworkInterface in interface io.netty.channel.socket.DatagramChannelConfig
    • setMaxMessagesPerWrite

      public KQueueDatagramChannelConfig setMaxMessagesPerWrite(int maxMessagesPerWrite)
      Overrides:
      setMaxMessagesPerWrite in class io.netty.channel.DefaultChannelConfig