@UnstableApi public final class KQueueDatagramChannelConfig extends KQueueChannelConfig implements io.netty.channel.socket.DatagramChannelConfig
autoReadCleared, getRcvAllocTransportProvidesGuess
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 KQueueChannelConfig
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption
in interface io.netty.channel.ChannelConfig
getOption
in class KQueueChannelConfig
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
setOption
in interface io.netty.channel.ChannelConfig
setOption
in class KQueueChannelConfig
public boolean isReusePort()
true
if the SO_REUSEPORT option is set.public KQueueDatagramChannelConfig setReusePort(boolean reusePort)
KQueueSocketChannel
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 KQueueDatagramChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
KQueueChannelConfig
true
then the RecvByteBufAllocator.Handle#guess()
will be overridden to always attempt
to read as many bytes as kqueue says are available.setRcvAllocTransportProvidesGuess
in class KQueueChannelConfig
public KQueueDatagramChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface io.netty.channel.socket.DatagramChannelConfig
setMessageSizeEstimator
in class KQueueChannelConfig
@Deprecated public KQueueDatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in class KQueueChannelConfig
@Deprecated public KQueueDatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in class KQueueChannelConfig
public KQueueDatagramChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.socket.DatagramChannelConfig
setWriteBufferWaterMark
in class KQueueChannelConfig
public KQueueDatagramChannelConfig 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 KQueueDatagramChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.socket.DatagramChannelConfig
setAutoRead
in class KQueueChannelConfig
public KQueueDatagramChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.socket.DatagramChannelConfig
setRecvByteBufAllocator
in class KQueueChannelConfig
public KQueueDatagramChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.socket.DatagramChannelConfig
setWriteSpinCount
in class KQueueChannelConfig
public KQueueDatagramChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.socket.DatagramChannelConfig
setAllocator
in class KQueueChannelConfig
public KQueueDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.socket.DatagramChannelConfig
setConnectTimeoutMillis
in class KQueueChannelConfig
@Deprecated public KQueueDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface io.netty.channel.socket.DatagramChannelConfig
setMaxMessagesPerRead
in class KQueueChannelConfig
public int getSendBufferSize()
getSendBufferSize
in interface io.netty.channel.socket.DatagramChannelConfig
public KQueueDatagramChannelConfig setSendBufferSize(int sendBufferSize)
setSendBufferSize
in interface io.netty.channel.socket.DatagramChannelConfig
public int getReceiveBufferSize()
getReceiveBufferSize
in interface io.netty.channel.socket.DatagramChannelConfig
public KQueueDatagramChannelConfig setReceiveBufferSize(int receiveBufferSize)
setReceiveBufferSize
in interface io.netty.channel.socket.DatagramChannelConfig
public int getTrafficClass()
getTrafficClass
in interface io.netty.channel.socket.DatagramChannelConfig
public KQueueDatagramChannelConfig setTrafficClass(int trafficClass)
setTrafficClass
in interface io.netty.channel.socket.DatagramChannelConfig
public boolean isReuseAddress()
isReuseAddress
in interface io.netty.channel.socket.DatagramChannelConfig
public KQueueDatagramChannelConfig setReuseAddress(boolean reuseAddress)
setReuseAddress
in interface io.netty.channel.socket.DatagramChannelConfig
public boolean isBroadcast()
isBroadcast
in interface io.netty.channel.socket.DatagramChannelConfig
public KQueueDatagramChannelConfig 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 KQueueDatagramChannelConfig setTimeToLive(int ttl)
setTimeToLive
in interface io.netty.channel.socket.DatagramChannelConfig
public InetAddress getInterface()
getInterface
in interface io.netty.channel.socket.DatagramChannelConfig
public KQueueDatagramChannelConfig setInterface(InetAddress interfaceAddress)
setInterface
in interface io.netty.channel.socket.DatagramChannelConfig
public NetworkInterface getNetworkInterface()
getNetworkInterface
in interface io.netty.channel.socket.DatagramChannelConfig
public KQueueDatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface)
setNetworkInterface
in interface io.netty.channel.socket.DatagramChannelConfig
Copyright © 2008–2021 The Netty Project. All rights reserved.