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 -
Method Summary
Modifier and TypeMethodDescription<T> TgetOption(io.netty.channel.ChannelOption<T> option) voidsetMetrics(NetherChannelMetrics metrics) <T> booleansetOption(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
-
Constructor Details
-
DefaultNetherChannelConfig
public DefaultNetherChannelConfig(io.netty.channel.Channel channel)
-
-
Method Details
-
getOptions
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classio.netty.channel.DefaultChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option) - Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classio.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:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classio.netty.channel.DefaultChannelConfig
-
setMetrics
-
getMetrics
-