Class DefaultNetherChannelConfig

java.lang.Object
io.netty.channel.DefaultChannelConfig
org.cloudburstmc.netty.channel.nethernet.config.DefaultNetherChannelConfig
All Implemented Interfaces:
io.netty.channel.ChannelConfig
Direct Known Subclasses:
DefaultNetherClientChannelConfig, DefaultNetherServerChannelConfig

public class DefaultNetherChannelConfig extends io.netty.channel.DefaultChannelConfig
  • Field Summary

    Fields inherited from class io.netty.channel.DefaultChannelConfig

    channel
  • Constructor Summary

    Constructors
    Constructor
    Description
    DefaultNetherChannelConfig(io.netty.channel.Channel channel)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    <T> T
    getOption(io.netty.channel.ChannelOption<T> option)
     
    Map<io.netty.channel.ChannelOption<?>,Object>
     
    void
     
    <T> boolean
    setOption(io.netty.channel.ChannelOption<T> option, T value)
    Accepts the transport's own options and Netty's, and refuses the rest, so a socket option or one meant for the other side is reported rather than kept without effect.

    Methods inherited from class io.netty.channel.DefaultChannelConfig

    autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMaxMessagesPerWrite, setMessageSizeEstimator, setOptions, setRecvByteBufAllocator, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount, validate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultNetherChannelConfig

      public DefaultNetherChannelConfig(io.netty.channel.Channel channel)
  • Method Details

    • 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)
      Accepts the transport's own options and Netty's, and refuses the rest, so a socket option or one meant for the other side is reported rather than kept without effect. Null clears the metrics.
      Specified by:
      setOption in interface io.netty.channel.ChannelConfig
      Overrides:
      setOption in class io.netty.channel.DefaultChannelConfig
    • setMetrics

      public void setMetrics(NetherChannelMetrics metrics)
    • getMetrics

      public NetherChannelMetrics getMetrics()