Package io.netty.channel.udt
Interface UdtChannelConfig
-
- All Superinterfaces:
ChannelConfig
- All Known Subinterfaces:
UdtServerChannelConfig
- All Known Implementing Classes:
DefaultUdtChannelConfig,DefaultUdtServerChannelConfig
@Deprecated public interface UdtChannelConfig extends ChannelConfig
Deprecated.The UDT transport is no longer maintained and will be removed.AChannelConfigfor aUdtChannel.Available options
In addition to the options provided byChannelConfig,UdtChannelConfigallows the following options in the option map:Note that
TypeUDT.DATAGRAMmessage oriented channels treat"receiveBufferSize"and"sendBufferSize"as maximum message size. If received or sent message does not fit specified sizes,ChannelExceptionwill be thrown.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intgetProtocolReceiveBufferSize()Deprecated.GetsOptionUDT.Protocol_Receive_Buffer_SizeintgetProtocolSendBufferSize()Deprecated.GetsOptionUDT.Protocol_Send_Buffer_SizeintgetReceiveBufferSize()Deprecated.Gets theChannelOption.SO_RCVBUFoption.intgetSendBufferSize()Deprecated.Gets theChannelOption.SO_SNDBUFoption.intgetSoLinger()Deprecated.Gets theChannelOption.SO_LINGERoption.intgetSystemReceiveBufferSize()Deprecated.GetsOptionUDT.System_Receive_Buffer_SizeintgetSystemSendBufferSize()Deprecated.GetsOptionUDT.System_Send_Buffer_SizebooleanisReuseAddress()Deprecated.Gets theChannelOption.SO_REUSEADDRoption.UdtChannelConfigsetAllocator(ByteBufAllocator allocator)Deprecated.Set theByteBufAllocatorwhich is used for the channel to allocate buffers.UdtChannelConfigsetAutoClose(boolean autoClose)Deprecated.Sets whether theChannelshould be closed automatically and immediately on write failure.UdtChannelConfigsetAutoRead(boolean autoRead)Deprecated.Sets ifChannelHandlerContext.read()will be invoked automatically so that a user application doesn't need to call it at all.UdtChannelConfigsetConnectTimeoutMillis(int connectTimeoutMillis)Deprecated.Sets the connect timeout of the channel in milliseconds.UdtChannelConfigsetMaxMessagesPerRead(int maxMessagesPerRead)Deprecated.UdtChannelConfigsetMessageSizeEstimator(MessageSizeEstimator estimator)Deprecated.Set theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.UdtChannelConfigsetProtocolReceiveBufferSize(int size)Deprecated.SetsOptionUDT.Protocol_Receive_Buffer_SizeUdtChannelConfigsetProtocolSendBufferSize(int size)Deprecated.SetsOptionUDT.Protocol_Send_Buffer_SizeUdtChannelConfigsetReceiveBufferSize(int receiveBufferSize)Deprecated.Sets theChannelOption.SO_RCVBUFoption.UdtChannelConfigsetRecvByteBufAllocator(RecvByteBufAllocator allocator)Deprecated.Set theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.UdtChannelConfigsetReuseAddress(boolean reuseAddress)Deprecated.Sets theChannelOption.SO_REUSEADDRoption.UdtChannelConfigsetSendBufferSize(int sendBufferSize)Deprecated.Sets theChannelOption.SO_SNDBUFoption.UdtChannelConfigsetSoLinger(int soLinger)Deprecated.Sets theChannelOption.SO_LINGERoption.UdtChannelConfigsetSystemReceiveBufferSize(int size)Deprecated.SetsOptionUDT.System_Receive_Buffer_SizeUdtChannelConfigsetSystemSendBufferSize(int size)Deprecated.SetsOptionUDT.System_Send_Buffer_SizeUdtChannelConfigsetWriteBufferHighWaterMark(int writeBufferHighWaterMark)Deprecated.Sets the high water mark of the write buffer.UdtChannelConfigsetWriteBufferLowWaterMark(int writeBufferLowWaterMark)Deprecated.Sets the low water mark of the write buffer.UdtChannelConfigsetWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)Deprecated.Set theWriteBufferWaterMarkwhich is used for setting the high and low water mark of the write buffer.UdtChannelConfigsetWriteSpinCount(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
-
-
-
-
Method Detail
-
getProtocolReceiveBufferSize
int getProtocolReceiveBufferSize()
Deprecated.GetsOptionUDT.Protocol_Receive_Buffer_Size
-
getProtocolSendBufferSize
int getProtocolSendBufferSize()
Deprecated.GetsOptionUDT.Protocol_Send_Buffer_Size
-
getReceiveBufferSize
int getReceiveBufferSize()
Deprecated.Gets theChannelOption.SO_RCVBUFoption.
-
getSendBufferSize
int getSendBufferSize()
Deprecated.Gets theChannelOption.SO_SNDBUFoption.
-
getSoLinger
int getSoLinger()
Deprecated.Gets theChannelOption.SO_LINGERoption.
-
getSystemReceiveBufferSize
int getSystemReceiveBufferSize()
Deprecated.GetsOptionUDT.System_Receive_Buffer_Size
-
getSystemSendBufferSize
int getSystemSendBufferSize()
Deprecated.GetsOptionUDT.System_Send_Buffer_Size
-
isReuseAddress
boolean isReuseAddress()
Deprecated.Gets theChannelOption.SO_REUSEADDRoption.
-
setConnectTimeoutMillis
UdtChannelConfig 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- Parameters:
connectTimeoutMillis- the connect timeout in milliseconds.0to disable.
-
setMaxMessagesPerRead
@Deprecated UdtChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceChannelConfig
-
setWriteSpinCount
UdtChannelConfig 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
-
setAllocator
UdtChannelConfig setAllocator(ByteBufAllocator allocator)
Deprecated.Description copied from interface:ChannelConfigSet theByteBufAllocatorwhich is used for the channel to allocate buffers.- Specified by:
setAllocatorin interfaceChannelConfig
-
setRecvByteBufAllocator
UdtChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.Description copied from interface:ChannelConfigSet theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.- Specified by:
setRecvByteBufAllocatorin interfaceChannelConfig
-
setAutoRead
UdtChannelConfig 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
-
setAutoClose
UdtChannelConfig 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
-
setWriteBufferHighWaterMark
UdtChannelConfig 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
UdtChannelConfig 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
-
setWriteBufferWaterMark
UdtChannelConfig 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
-
setMessageSizeEstimator
UdtChannelConfig 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
-
setProtocolReceiveBufferSize
UdtChannelConfig setProtocolReceiveBufferSize(int size)
Deprecated.SetsOptionUDT.Protocol_Receive_Buffer_Size
-
setProtocolSendBufferSize
UdtChannelConfig setProtocolSendBufferSize(int size)
Deprecated.SetsOptionUDT.Protocol_Send_Buffer_Size
-
setReceiveBufferSize
UdtChannelConfig setReceiveBufferSize(int receiveBufferSize)
Deprecated.Sets theChannelOption.SO_RCVBUFoption.
-
setReuseAddress
UdtChannelConfig setReuseAddress(boolean reuseAddress)
Deprecated.Sets theChannelOption.SO_REUSEADDRoption.
-
setSendBufferSize
UdtChannelConfig setSendBufferSize(int sendBufferSize)
Deprecated.Sets theChannelOption.SO_SNDBUFoption.
-
setSoLinger
UdtChannelConfig setSoLinger(int soLinger)
Deprecated.Sets theChannelOption.SO_LINGERoption.
-
setSystemReceiveBufferSize
UdtChannelConfig setSystemReceiveBufferSize(int size)
Deprecated.SetsOptionUDT.System_Receive_Buffer_Size
-
setSystemSendBufferSize
UdtChannelConfig setSystemSendBufferSize(int size)
Deprecated.SetsOptionUDT.System_Send_Buffer_Size
-
-