public final class EpollDatagramChannelConfig extends EpollChannelConfig implements io.netty.channel.socket.DatagramChannelConfig
autoReadCleared, getEpollMode, getMaxBytesPerGatheringWrite, setMaxBytesPerGatheringWrite, socketgetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptionspublic Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions in interface io.netty.channel.ChannelConfiggetOptions in class EpollChannelConfigpublic <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption in interface io.netty.channel.ChannelConfiggetOption in class EpollChannelConfigpublic <T> boolean setOption(io.netty.channel.ChannelOption<T> option,
T value)
setOption in interface io.netty.channel.ChannelConfigsetOption in class EpollChannelConfigpublic EpollDatagramChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface io.netty.channel.socket.DatagramChannelConfigsetMessageSizeEstimator in class EpollChannelConfig@Deprecated public EpollDatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in class EpollChannelConfig@Deprecated public EpollDatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in class EpollChannelConfigpublic EpollDatagramChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferWaterMark in interface io.netty.channel.socket.DatagramChannelConfigsetWriteBufferWaterMark in class EpollChannelConfigpublic EpollDatagramChannelConfig setAutoClose(boolean autoClose)
setAutoClose in interface io.netty.channel.ChannelConfigsetAutoClose in interface io.netty.channel.socket.DatagramChannelConfigsetAutoClose in class io.netty.channel.DefaultChannelConfigpublic EpollDatagramChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface io.netty.channel.socket.DatagramChannelConfigsetAutoRead in class EpollChannelConfigpublic EpollDatagramChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface io.netty.channel.socket.DatagramChannelConfigsetRecvByteBufAllocator in class EpollChannelConfigpublic EpollDatagramChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface io.netty.channel.socket.DatagramChannelConfigsetWriteSpinCount in class EpollChannelConfigpublic EpollDatagramChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface io.netty.channel.socket.DatagramChannelConfigsetAllocator in class EpollChannelConfigpublic EpollDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface io.netty.channel.socket.DatagramChannelConfigsetConnectTimeoutMillis in class EpollChannelConfig@Deprecated public EpollDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface io.netty.channel.socket.DatagramChannelConfigsetMaxMessagesPerRead in class EpollChannelConfigpublic int getSendBufferSize()
getSendBufferSize in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setSendBufferSize(int sendBufferSize)
setSendBufferSize in interface io.netty.channel.socket.DatagramChannelConfigpublic int getReceiveBufferSize()
getReceiveBufferSize in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize in interface io.netty.channel.socket.DatagramChannelConfigpublic int getTrafficClass()
getTrafficClass in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setTrafficClass(int trafficClass)
setTrafficClass in interface io.netty.channel.socket.DatagramChannelConfigpublic boolean isReuseAddress()
isReuseAddress in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress in interface io.netty.channel.socket.DatagramChannelConfigpublic boolean isBroadcast()
isBroadcast in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setBroadcast(boolean broadcast)
setBroadcast in interface io.netty.channel.socket.DatagramChannelConfigpublic boolean isLoopbackModeDisabled()
isLoopbackModeDisabled in interface io.netty.channel.socket.DatagramChannelConfigpublic io.netty.channel.socket.DatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled)
setLoopbackModeDisabled in interface io.netty.channel.socket.DatagramChannelConfigpublic int getTimeToLive()
getTimeToLive in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setTimeToLive(int ttl)
setTimeToLive in interface io.netty.channel.socket.DatagramChannelConfigpublic InetAddress getInterface()
getInterface in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setInterface(InetAddress interfaceAddress)
setInterface in interface io.netty.channel.socket.DatagramChannelConfigpublic NetworkInterface getNetworkInterface()
getNetworkInterface in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface)
setNetworkInterface in interface io.netty.channel.socket.DatagramChannelConfigpublic EpollDatagramChannelConfig setEpollMode(EpollMode mode)
EpollChannelConfigEpollMode used. Default is
EpollMode.EDGE_TRIGGERED. If you want to use DefaultChannelConfig.isAutoRead() false or
DefaultChannelConfig.getMaxMessagesPerRead() and have an accurate behaviour you should use
EpollMode.LEVEL_TRIGGERED.
Be aware this config setting can only be adjusted before the channel was registered.setEpollMode in class EpollChannelConfigpublic boolean isReusePort()
true if the SO_REUSEPORT option is set.public EpollDatagramChannelConfig setReusePort(boolean reusePort)
EpollSocketChannels 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.public boolean isIpTransparent()
public EpollDatagramChannelConfig setIpTransparent(boolean ipTransparent)
public boolean isFreeBind()
public EpollDatagramChannelConfig setFreeBind(boolean freeBind)
public boolean isIpRecvOrigDestAddr()
public EpollDatagramChannelConfig setIpRecvOrigDestAddr(boolean ipTransparent)
public EpollDatagramChannelConfig setMaxDatagramPayloadSize(int maxDatagramSize)
DatagramPacket size. This will be used to determine if
recvmmsg should be used when reading from the underlying socket. When recvmmsg is used
we may be able to read multiple DatagramPackets with one syscall and so
greatly improve the performance. This number will be used to slice ByteBufs returned by the used
RecvByteBufAllocator. You can use 0 to disable the usage of recvmmsg, any other bigger value
will enable it.public int getMaxDatagramPayloadSize()
DatagramPacket size.public EpollDatagramChannelConfig setUdpGro(boolean gro)
gro - true if UDP_GRO should be enabled, false otherwise.public boolean isUdpGro()
UDP_GRO is enabled.true if enabled, false otherwise.public EpollDatagramChannelConfig setMaxMessagesPerWrite(int maxMessagesPerWrite)
setMaxMessagesPerWrite in class io.netty.channel.DefaultChannelConfigCopyright © 2008–2025 The Netty Project. All rights reserved.