public final class EpollDatagramChannelConfig extends EpollChannelConfig implements io.netty.channel.socket.DatagramChannelConfig
autoReadCleared, getEpollMode
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions
in interface io.netty.channel.ChannelConfig
getOptions
in class EpollChannelConfig
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption
in interface io.netty.channel.ChannelConfig
getOption
in class EpollChannelConfig
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
setOption
in interface io.netty.channel.ChannelConfig
setOption
in class EpollChannelConfig
public EpollDatagramChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface io.netty.channel.socket.DatagramChannelConfig
setMessageSizeEstimator
in class EpollChannelConfig
@Deprecated public EpollDatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in class EpollChannelConfig
@Deprecated public EpollDatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in class EpollChannelConfig
public EpollDatagramChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.socket.DatagramChannelConfig
setWriteBufferWaterMark
in class EpollChannelConfig
public EpollDatagramChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
setAutoClose
in interface io.netty.channel.socket.DatagramChannelConfig
setAutoClose
in class io.netty.channel.DefaultChannelConfig
public EpollDatagramChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.socket.DatagramChannelConfig
setAutoRead
in class EpollChannelConfig
public EpollDatagramChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.socket.DatagramChannelConfig
setRecvByteBufAllocator
in class EpollChannelConfig
public EpollDatagramChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.socket.DatagramChannelConfig
setWriteSpinCount
in class EpollChannelConfig
public EpollDatagramChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.socket.DatagramChannelConfig
setAllocator
in class EpollChannelConfig
public EpollDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.socket.DatagramChannelConfig
setConnectTimeoutMillis
in class EpollChannelConfig
@Deprecated public EpollDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface io.netty.channel.socket.DatagramChannelConfig
setMaxMessagesPerRead
in class EpollChannelConfig
public int getSendBufferSize()
getSendBufferSize
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setSendBufferSize(int sendBufferSize)
setSendBufferSize
in interface io.netty.channel.socket.DatagramChannelConfig
public int getReceiveBufferSize()
getReceiveBufferSize
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in interface io.netty.channel.socket.DatagramChannelConfig
public int getTrafficClass()
getTrafficClass
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setTrafficClass(int trafficClass)
setTrafficClass
in interface io.netty.channel.socket.DatagramChannelConfig
public boolean isReuseAddress()
isReuseAddress
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress
in interface io.netty.channel.socket.DatagramChannelConfig
public boolean isBroadcast()
isBroadcast
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setBroadcast(boolean broadcast)
setBroadcast
in interface io.netty.channel.socket.DatagramChannelConfig
public boolean isLoopbackModeDisabled()
isLoopbackModeDisabled
in interface io.netty.channel.socket.DatagramChannelConfig
public io.netty.channel.socket.DatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled)
setLoopbackModeDisabled
in interface io.netty.channel.socket.DatagramChannelConfig
public int getTimeToLive()
getTimeToLive
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setTimeToLive(int ttl)
setTimeToLive
in interface io.netty.channel.socket.DatagramChannelConfig
public InetAddress getInterface()
getInterface
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setInterface(InetAddress interfaceAddress)
setInterface
in interface io.netty.channel.socket.DatagramChannelConfig
public NetworkInterface getNetworkInterface()
getNetworkInterface
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface)
setNetworkInterface
in interface io.netty.channel.socket.DatagramChannelConfig
public EpollDatagramChannelConfig setEpollMode(EpollMode mode)
EpollChannelConfig
EpollMode
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 EpollChannelConfig
public boolean isReusePort()
true
if the SO_REUSEPORT option is set.public EpollDatagramChannelConfig setReusePort(boolean reusePort)
EpollSocketChannel
s 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)
Copyright © 2008–2019 The Netty Project. All rights reserved.