Package io.netty.channel.kqueue
Class KQueueDatagramChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.kqueue.KQueueChannelConfig
-
- io.netty.channel.kqueue.KQueueDatagramChannelConfig
-
- All Implemented Interfaces:
io.netty.channel.ChannelConfig,io.netty.channel.socket.DatagramChannelConfig
public final class KQueueDatagramChannelConfig extends KQueueChannelConfig implements io.netty.channel.socket.DatagramChannelConfig
-
-
Method Summary
-
Methods inherited from class io.netty.channel.kqueue.KQueueChannelConfig
autoReadCleared, getRcvAllocTransportProvidesGuess
-
Methods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions
-
-
-
-
Method Detail
-
getOptions
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classKQueueChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
- Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classKQueueChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)- Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classKQueueChannelConfig
-
isReusePort
public boolean isReusePort()
Returnstrueif the SO_REUSEPORT option is set.
-
setReusePort
public KQueueDatagramChannelConfig setReusePort(boolean reusePort)
Set the SO_REUSEPORT option on the underlying Channel. This will allow to bind multipleKQueueSocketChannels to the same port and so accept connections with multiple threads. Be aware this method needs be called beforeChannel.bind(java.net.SocketAddress)to have any affect.
-
setRcvAllocTransportProvidesGuess
public KQueueDatagramChannelConfig setRcvAllocTransportProvidesGuess(boolean transportProvidesGuess)
Description copied from class:KQueueChannelConfigIf this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.- Overrides:
setRcvAllocTransportProvidesGuessin classKQueueChannelConfig
-
setMessageSizeEstimator
public KQueueDatagramChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setMessageSizeEstimatorin classKQueueChannelConfig
-
setWriteBufferLowWaterMark
@Deprecated public KQueueDatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferLowWaterMarkin classKQueueChannelConfig
-
setWriteBufferHighWaterMark
@Deprecated public KQueueDatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.ChannelConfig- Overrides:
setWriteBufferHighWaterMarkin classKQueueChannelConfig
-
setWriteBufferWaterMark
public KQueueDatagramChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setWriteBufferWaterMarkin classKQueueChannelConfig
-
setAutoClose
public KQueueDatagramChannelConfig setAutoClose(boolean autoClose)
- Specified by:
setAutoClosein interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoClosein interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setAutoClosein classio.netty.channel.DefaultChannelConfig
-
setAutoRead
public KQueueDatagramChannelConfig setAutoRead(boolean autoRead)
- Specified by:
setAutoReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setAutoReadin classKQueueChannelConfig
-
setRecvByteBufAllocator
public KQueueDatagramChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setRecvByteBufAllocatorin classKQueueChannelConfig
-
setWriteSpinCount
public KQueueDatagramChannelConfig setWriteSpinCount(int writeSpinCount)
- Specified by:
setWriteSpinCountin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setWriteSpinCountin classKQueueChannelConfig
-
setAllocator
public KQueueDatagramChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
- Specified by:
setAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setAllocatorin classKQueueChannelConfig
-
setConnectTimeoutMillis
public KQueueDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setConnectTimeoutMillisin classKQueueChannelConfig
-
setMaxMessagesPerRead
@Deprecated public KQueueDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.socket.DatagramChannelConfig- Overrides:
setMaxMessagesPerReadin classKQueueChannelConfig
-
getSendBufferSize
public int getSendBufferSize()
- Specified by:
getSendBufferSizein interfaceio.netty.channel.socket.DatagramChannelConfig
-
setSendBufferSize
public KQueueDatagramChannelConfig setSendBufferSize(int sendBufferSize)
- Specified by:
setSendBufferSizein interfaceio.netty.channel.socket.DatagramChannelConfig
-
getReceiveBufferSize
public int getReceiveBufferSize()
- Specified by:
getReceiveBufferSizein interfaceio.netty.channel.socket.DatagramChannelConfig
-
setReceiveBufferSize
public KQueueDatagramChannelConfig setReceiveBufferSize(int receiveBufferSize)
- Specified by:
setReceiveBufferSizein interfaceio.netty.channel.socket.DatagramChannelConfig
-
getTrafficClass
public int getTrafficClass()
- Specified by:
getTrafficClassin interfaceio.netty.channel.socket.DatagramChannelConfig
-
setTrafficClass
public KQueueDatagramChannelConfig setTrafficClass(int trafficClass)
- Specified by:
setTrafficClassin interfaceio.netty.channel.socket.DatagramChannelConfig
-
isReuseAddress
public boolean isReuseAddress()
- Specified by:
isReuseAddressin interfaceio.netty.channel.socket.DatagramChannelConfig
-
setReuseAddress
public KQueueDatagramChannelConfig setReuseAddress(boolean reuseAddress)
- Specified by:
setReuseAddressin interfaceio.netty.channel.socket.DatagramChannelConfig
-
isBroadcast
public boolean isBroadcast()
- Specified by:
isBroadcastin interfaceio.netty.channel.socket.DatagramChannelConfig
-
setBroadcast
public KQueueDatagramChannelConfig setBroadcast(boolean broadcast)
- Specified by:
setBroadcastin interfaceio.netty.channel.socket.DatagramChannelConfig
-
isLoopbackModeDisabled
public boolean isLoopbackModeDisabled()
- Specified by:
isLoopbackModeDisabledin interfaceio.netty.channel.socket.DatagramChannelConfig
-
setLoopbackModeDisabled
public io.netty.channel.socket.DatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled)
- Specified by:
setLoopbackModeDisabledin interfaceio.netty.channel.socket.DatagramChannelConfig
-
getTimeToLive
public int getTimeToLive()
- Specified by:
getTimeToLivein interfaceio.netty.channel.socket.DatagramChannelConfig
-
setTimeToLive
public KQueueDatagramChannelConfig setTimeToLive(int ttl)
- Specified by:
setTimeToLivein interfaceio.netty.channel.socket.DatagramChannelConfig
-
getInterface
public InetAddress getInterface()
- Specified by:
getInterfacein interfaceio.netty.channel.socket.DatagramChannelConfig
-
setInterface
public KQueueDatagramChannelConfig setInterface(InetAddress interfaceAddress)
- Specified by:
setInterfacein interfaceio.netty.channel.socket.DatagramChannelConfig
-
getNetworkInterface
public NetworkInterface getNetworkInterface()
- Specified by:
getNetworkInterfacein interfaceio.netty.channel.socket.DatagramChannelConfig
-
setNetworkInterface
public KQueueDatagramChannelConfig setNetworkInterface(NetworkInterface networkInterface)
- Specified by:
setNetworkInterfacein interfaceio.netty.channel.socket.DatagramChannelConfig
-
setMaxMessagesPerWrite
public KQueueDatagramChannelConfig setMaxMessagesPerWrite(int maxMessagesPerWrite)
- Overrides:
setMaxMessagesPerWritein classio.netty.channel.DefaultChannelConfig
-
-