Package io.netty.channel.socket.oio
Interface OioDatagramChannelConfig
-
- All Superinterfaces:
ChannelConfig,DatagramChannelConfig
@Deprecated public interface OioDatagramChannelConfig extends DatagramChannelConfig
Deprecated.use NIO / EPOLL / KQUEUE transport.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intgetSoTimeout()Deprecated.Returns the maximal time a operation on the underlying socket may block.OioDatagramChannelConfigsetAllocator(ByteBufAllocator allocator)Deprecated.Set theByteBufAllocatorwhich is used for the channel to allocate buffers.OioDatagramChannelConfigsetAutoClose(boolean autoClose)Deprecated.Sets whether theChannelshould be closed automatically and immediately on write failure.OioDatagramChannelConfigsetAutoRead(boolean autoRead)Deprecated.Sets ifChannelHandlerContext.read()will be invoked automatically so that a user application doesn't need to call it at all.OioDatagramChannelConfigsetBroadcast(boolean broadcast)Deprecated.Sets theStandardSocketOptions.SO_BROADCASToption.OioDatagramChannelConfigsetConnectTimeoutMillis(int connectTimeoutMillis)Deprecated.Sets the connect timeout of the channel in milliseconds.OioDatagramChannelConfigsetInterface(java.net.InetAddress interfaceAddress)Deprecated.Sets the address of the network interface used for multicast packets.OioDatagramChannelConfigsetLoopbackModeDisabled(boolean loopbackModeDisabled)Deprecated.Sets theStandardSocketOptions.IP_MULTICAST_LOOPoption.OioDatagramChannelConfigsetMaxMessagesPerRead(int maxMessagesPerRead)Deprecated.OioDatagramChannelConfigsetMessageSizeEstimator(MessageSizeEstimator estimator)Deprecated.Set theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.OioDatagramChannelConfigsetNetworkInterface(java.net.NetworkInterface networkInterface)Deprecated.Sets theStandardSocketOptions.IP_MULTICAST_IFoption.OioDatagramChannelConfigsetReceiveBufferSize(int receiveBufferSize)Deprecated.Sets theStandardSocketOptions.SO_RCVBUFoption.OioDatagramChannelConfigsetRecvByteBufAllocator(RecvByteBufAllocator allocator)Deprecated.Set theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.OioDatagramChannelConfigsetReuseAddress(boolean reuseAddress)Deprecated.Gets theStandardSocketOptions.SO_REUSEADDRoption.OioDatagramChannelConfigsetSendBufferSize(int sendBufferSize)Deprecated.Sets theStandardSocketOptions.SO_SNDBUFoption.OioDatagramChannelConfigsetSoTimeout(int timeout)Deprecated.Sets the maximal time a operation on the underlying socket may block.OioDatagramChannelConfigsetTimeToLive(int ttl)Deprecated.Sets theStandardSocketOptions.IP_MULTICAST_TTLoption.OioDatagramChannelConfigsetTrafficClass(int trafficClass)Deprecated.Sets theStandardSocketOptions.IP_TOSoption.OioDatagramChannelConfigsetWriteBufferHighWaterMark(int writeBufferHighWaterMark)Deprecated.Sets the high water mark of the write buffer.OioDatagramChannelConfigsetWriteBufferLowWaterMark(int writeBufferLowWaterMark)Deprecated.Sets the low water mark of the write buffer.OioDatagramChannelConfigsetWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)Deprecated.Set theWriteBufferWaterMarkwhich is used for setting the high and low water mark of the write buffer.OioDatagramChannelConfigsetWriteSpinCount(int writeSpinCount)Deprecated.Sets the maximum loop count for a write operation untilWritableByteChannel.write(ByteBuffer)returns a non-zero value.-
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOption, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOption, setOptions
-
Methods inherited from interface io.netty.channel.socket.DatagramChannelConfig
getInterface, getNetworkInterface, getReceiveBufferSize, getSendBufferSize, getTimeToLive, getTrafficClass, isBroadcast, isLoopbackModeDisabled, isReuseAddress
-
-
-
-
Method Detail
-
setSoTimeout
OioDatagramChannelConfig setSoTimeout(int timeout)
Deprecated.Sets the maximal time a operation on the underlying socket may block.
-
getSoTimeout
int getSoTimeout()
Deprecated.Returns the maximal time a operation on the underlying socket may block.
-
setSendBufferSize
OioDatagramChannelConfig setSendBufferSize(int sendBufferSize)
Deprecated.Description copied from interface:DatagramChannelConfigSets theStandardSocketOptions.SO_SNDBUFoption.- Specified by:
setSendBufferSizein interfaceDatagramChannelConfig
-
setReceiveBufferSize
OioDatagramChannelConfig setReceiveBufferSize(int receiveBufferSize)
Deprecated.Description copied from interface:DatagramChannelConfigSets theStandardSocketOptions.SO_RCVBUFoption.- Specified by:
setReceiveBufferSizein interfaceDatagramChannelConfig
-
setTrafficClass
OioDatagramChannelConfig setTrafficClass(int trafficClass)
Deprecated.Description copied from interface:DatagramChannelConfigSets theStandardSocketOptions.IP_TOSoption.- Specified by:
setTrafficClassin interfaceDatagramChannelConfig
-
setReuseAddress
OioDatagramChannelConfig setReuseAddress(boolean reuseAddress)
Deprecated.Description copied from interface:DatagramChannelConfigGets theStandardSocketOptions.SO_REUSEADDRoption.- Specified by:
setReuseAddressin interfaceDatagramChannelConfig
-
setBroadcast
OioDatagramChannelConfig setBroadcast(boolean broadcast)
Deprecated.Description copied from interface:DatagramChannelConfigSets theStandardSocketOptions.SO_BROADCASToption.- Specified by:
setBroadcastin interfaceDatagramChannelConfig
-
setLoopbackModeDisabled
OioDatagramChannelConfig setLoopbackModeDisabled(boolean loopbackModeDisabled)
Deprecated.Description copied from interface:DatagramChannelConfigSets theStandardSocketOptions.IP_MULTICAST_LOOPoption.- Specified by:
setLoopbackModeDisabledin interfaceDatagramChannelConfig- Parameters:
loopbackModeDisabled-trueif and only if the loopback mode has been disabled
-
setTimeToLive
OioDatagramChannelConfig setTimeToLive(int ttl)
Deprecated.Description copied from interface:DatagramChannelConfigSets theStandardSocketOptions.IP_MULTICAST_TTLoption.- Specified by:
setTimeToLivein interfaceDatagramChannelConfig
-
setInterface
OioDatagramChannelConfig setInterface(java.net.InetAddress interfaceAddress)
Deprecated.Description copied from interface:DatagramChannelConfigSets the address of the network interface used for multicast packets.- Specified by:
setInterfacein interfaceDatagramChannelConfig
-
setNetworkInterface
OioDatagramChannelConfig setNetworkInterface(java.net.NetworkInterface networkInterface)
Deprecated.Description copied from interface:DatagramChannelConfigSets theStandardSocketOptions.IP_MULTICAST_IFoption.- Specified by:
setNetworkInterfacein interfaceDatagramChannelConfig
-
setMaxMessagesPerRead
OioDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceDatagramChannelConfig
-
setWriteSpinCount
OioDatagramChannelConfig setWriteSpinCount(int writeSpinCount)
Deprecated.Description copied from interface:ChannelConfigSets the maximum loop count for a write operation untilWritableByteChannel.write(ByteBuffer)returns a non-zero value. It is similar to what a spin lock is used for in concurrency programming. It improves memory utilization and write throughput depending on the platform that JVM runs on. The default value is16.- Specified by:
setWriteSpinCountin interfaceChannelConfig- Specified by:
setWriteSpinCountin interfaceDatagramChannelConfig
-
setConnectTimeoutMillis
OioDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
Deprecated.Description copied from interface:ChannelConfigSets the connect timeout of the channel in milliseconds. If theChanneldoes not support connect operation, this property is not used at all, and therefore will be ignored.- Specified by:
setConnectTimeoutMillisin interfaceChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceDatagramChannelConfig- Parameters:
connectTimeoutMillis- the connect timeout in milliseconds.0to disable.
-
setAllocator
OioDatagramChannelConfig setAllocator(ByteBufAllocator allocator)
Deprecated.Description copied from interface:ChannelConfigSet theByteBufAllocatorwhich is used for the channel to allocate buffers.- Specified by:
setAllocatorin interfaceChannelConfig- Specified by:
setAllocatorin interfaceDatagramChannelConfig
-
setRecvByteBufAllocator
OioDatagramChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.Description copied from interface:ChannelConfigSet theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.- Specified by:
setRecvByteBufAllocatorin interfaceChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceDatagramChannelConfig
-
setAutoRead
OioDatagramChannelConfig setAutoRead(boolean autoRead)
Deprecated.Description copied from interface:ChannelConfigSets ifChannelHandlerContext.read()will be invoked automatically so that a user application doesn't need to call it at all. The default value istrue.- Specified by:
setAutoReadin interfaceChannelConfig- Specified by:
setAutoReadin interfaceDatagramChannelConfig
-
setAutoClose
OioDatagramChannelConfig setAutoClose(boolean autoClose)
Deprecated.Description copied from interface:ChannelConfigSets whether theChannelshould be closed automatically and immediately on write failure. The default istrue.- Specified by:
setAutoClosein interfaceChannelConfig- Specified by:
setAutoClosein interfaceDatagramChannelConfig
-
setMessageSizeEstimator
OioDatagramChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.Description copied from interface:ChannelConfigSet theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.- Specified by:
setMessageSizeEstimatorin interfaceChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceDatagramChannelConfig
-
setWriteBufferWaterMark
OioDatagramChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
Deprecated.Description copied from interface:ChannelConfigSet theWriteBufferWaterMarkwhich is used for setting the high and low water mark of the write buffer.- Specified by:
setWriteBufferWaterMarkin interfaceChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceDatagramChannelConfig
-
setWriteBufferHighWaterMark
OioDatagramChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.Description copied from interface:ChannelConfigSets the high water mark of the write buffer. If the number of bytes queued in the write buffer exceeds this value,
Channel.isWritable()will start to returnfalse.- Specified by:
setWriteBufferHighWaterMarkin interfaceChannelConfig
-
setWriteBufferLowWaterMark
OioDatagramChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.Description copied from interface:ChannelConfigSets the low water mark of the write buffer. Once the number of bytes queued in the write buffer exceeded the high water mark and then dropped down below this value,
Channel.isWritable()will start to returntrueagain.- Specified by:
setWriteBufferLowWaterMarkin interfaceChannelConfig
-
-