Class KQueueDomainSocketChannelConfig

java.lang.Object
io.netty.channel.DefaultChannelConfig
io.netty.channel.kqueue.KQueueChannelConfig
io.netty.channel.kqueue.KQueueDomainSocketChannelConfig
All Implemented Interfaces:
io.netty.channel.ChannelConfig, io.netty.channel.socket.DuplexChannelConfig, io.netty.channel.unix.DomainSocketChannelConfig

@UnstableApi public final class KQueueDomainSocketChannelConfig extends KQueueChannelConfig implements io.netty.channel.unix.DomainSocketChannelConfig, io.netty.channel.socket.DuplexChannelConfig
  • 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
    • setRcvAllocTransportProvidesGuess

      public KQueueDomainSocketChannelConfig 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
    • setMaxMessagesPerRead

      @Deprecated public KQueueDomainSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
      Deprecated.
      Specified by:
      setMaxMessagesPerRead in interface io.netty.channel.ChannelConfig
      Specified by:
      setMaxMessagesPerRead in interface io.netty.channel.unix.DomainSocketChannelConfig
      Specified by:
      setMaxMessagesPerRead in interface io.netty.channel.socket.DuplexChannelConfig
      Overrides:
      setMaxMessagesPerRead in class KQueueChannelConfig
    • setConnectTimeoutMillis

      public KQueueDomainSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
      Specified by:
      setConnectTimeoutMillis in interface io.netty.channel.ChannelConfig
      Specified by:
      setConnectTimeoutMillis in interface io.netty.channel.unix.DomainSocketChannelConfig
      Overrides:
      setConnectTimeoutMillis in class KQueueChannelConfig
    • setWriteSpinCount

      public KQueueDomainSocketChannelConfig setWriteSpinCount(int writeSpinCount)
      Specified by:
      setWriteSpinCount in interface io.netty.channel.ChannelConfig
      Specified by:
      setWriteSpinCount in interface io.netty.channel.unix.DomainSocketChannelConfig
      Specified by:
      setWriteSpinCount in interface io.netty.channel.socket.DuplexChannelConfig
      Overrides:
      setWriteSpinCount in class KQueueChannelConfig
    • setRecvByteBufAllocator

      public KQueueDomainSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
      Specified by:
      setRecvByteBufAllocator in interface io.netty.channel.ChannelConfig
      Specified by:
      setRecvByteBufAllocator in interface io.netty.channel.unix.DomainSocketChannelConfig
      Specified by:
      setRecvByteBufAllocator in interface io.netty.channel.socket.DuplexChannelConfig
      Overrides:
      setRecvByteBufAllocator in class KQueueChannelConfig
    • setAllocator

      public KQueueDomainSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
      Specified by:
      setAllocator in interface io.netty.channel.ChannelConfig
      Specified by:
      setAllocator in interface io.netty.channel.unix.DomainSocketChannelConfig
      Specified by:
      setAllocator in interface io.netty.channel.socket.DuplexChannelConfig
      Overrides:
      setAllocator in class KQueueChannelConfig
    • setAutoClose

      public KQueueDomainSocketChannelConfig setAutoClose(boolean autoClose)
      Specified by:
      setAutoClose in interface io.netty.channel.ChannelConfig
      Specified by:
      setAutoClose in interface io.netty.channel.unix.DomainSocketChannelConfig
      Specified by:
      setAutoClose in interface io.netty.channel.socket.DuplexChannelConfig
      Overrides:
      setAutoClose in class io.netty.channel.DefaultChannelConfig
    • setMessageSizeEstimator

      public KQueueDomainSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
      Specified by:
      setMessageSizeEstimator in interface io.netty.channel.ChannelConfig
      Specified by:
      setMessageSizeEstimator in interface io.netty.channel.unix.DomainSocketChannelConfig
      Specified by:
      setMessageSizeEstimator in interface io.netty.channel.socket.DuplexChannelConfig
      Overrides:
      setMessageSizeEstimator in class KQueueChannelConfig
    • setWriteBufferLowWaterMark

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

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

      public KQueueDomainSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
      Specified by:
      setWriteBufferWaterMark in interface io.netty.channel.ChannelConfig
      Specified by:
      setWriteBufferWaterMark in interface io.netty.channel.unix.DomainSocketChannelConfig
      Specified by:
      setWriteBufferWaterMark in interface io.netty.channel.socket.DuplexChannelConfig
      Overrides:
      setWriteBufferWaterMark in class KQueueChannelConfig
    • setAutoRead

      public KQueueDomainSocketChannelConfig setAutoRead(boolean autoRead)
      Specified by:
      setAutoRead in interface io.netty.channel.ChannelConfig
      Specified by:
      setAutoRead in interface io.netty.channel.unix.DomainSocketChannelConfig
      Specified by:
      setAutoRead in interface io.netty.channel.socket.DuplexChannelConfig
      Overrides:
      setAutoRead in class KQueueChannelConfig
    • setReadMode

      public KQueueDomainSocketChannelConfig setReadMode(io.netty.channel.unix.DomainSocketReadMode mode)
      Specified by:
      setReadMode in interface io.netty.channel.unix.DomainSocketChannelConfig
    • getReadMode

      public io.netty.channel.unix.DomainSocketReadMode getReadMode()
      Specified by:
      getReadMode in interface io.netty.channel.unix.DomainSocketChannelConfig
    • getSendBufferSize

      public int getSendBufferSize()
    • setSendBufferSize

      public KQueueDomainSocketChannelConfig setSendBufferSize(int sendBufferSize)
    • getReceiveBufferSize

      public int getReceiveBufferSize()
    • setReceiveBufferSize

      public KQueueDomainSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
    • isAllowHalfClosure

      public boolean isAllowHalfClosure()
      Specified by:
      isAllowHalfClosure in interface io.netty.channel.socket.DuplexChannelConfig
    • setAllowHalfClosure

      public KQueueDomainSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)
      Specified by:
      setAllowHalfClosure in interface io.netty.channel.socket.DuplexChannelConfig