Package io.netty.channel.udt
Interface UdtServerChannelConfig
-
- All Superinterfaces:
ChannelConfig
,UdtChannelConfig
- All Known Implementing Classes:
DefaultUdtServerChannelConfig
@Deprecated public interface UdtServerChannelConfig extends UdtChannelConfig
Deprecated.The UDT transport is no longer maintained and will be removed.AChannelConfig
for aUdtServerChannel
.Note that
TypeUDT.DATAGRAM
message oriented channels treat"receiveBufferSize"
and"sendBufferSize"
as maximum message size. If received or sent message does not fit specified sizes,ChannelException
will be thrown.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description int
getBacklog()
Deprecated.GetsKindUDT.ACCEPTOR
channel backlog viaChannelOption.SO_BACKLOG
.UdtServerChannelConfig
setAllocator(ByteBufAllocator allocator)
Deprecated.Set theByteBufAllocator
which is used for the channel to allocate buffers.UdtServerChannelConfig
setAutoClose(boolean autoClose)
Deprecated.Sets whether theChannel
should be closed automatically and immediately on write failure.UdtServerChannelConfig
setAutoRead(boolean autoRead)
Deprecated.Sets ifChannelHandlerContext.read()
will be invoked automatically so that a user application doesn't need to call it at all.UdtServerChannelConfig
setBacklog(int backlog)
Deprecated.SetsKindUDT.ACCEPTOR
channel backlog viaChannelOption.SO_BACKLOG
.UdtServerChannelConfig
setConnectTimeoutMillis(int connectTimeoutMillis)
Deprecated.Sets the connect timeout of the channel in milliseconds.UdtServerChannelConfig
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.UdtServerChannelConfig
setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.Set theMessageSizeEstimator
which is used for the channel to detect the size of a message.UdtServerChannelConfig
setProtocolReceiveBufferSize(int size)
Deprecated.SetsOptionUDT.Protocol_Receive_Buffer_Size
UdtServerChannelConfig
setProtocolSendBufferSize(int size)
Deprecated.SetsOptionUDT.Protocol_Send_Buffer_Size
UdtServerChannelConfig
setReceiveBufferSize(int receiveBufferSize)
Deprecated.Sets theChannelOption.SO_RCVBUF
option.UdtServerChannelConfig
setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.Set theRecvByteBufAllocator
which is used for the channel to allocate receive buffers.UdtServerChannelConfig
setReuseAddress(boolean reuseAddress)
Deprecated.Sets theChannelOption.SO_REUSEADDR
option.UdtServerChannelConfig
setSendBufferSize(int sendBufferSize)
Deprecated.Sets theChannelOption.SO_SNDBUF
option.UdtServerChannelConfig
setSoLinger(int soLinger)
Deprecated.Sets theChannelOption.SO_LINGER
option.UdtServerChannelConfig
setSystemReceiveBufferSize(int size)
Deprecated.SetsOptionUDT.System_Receive_Buffer_Size
UdtServerChannelConfig
setSystemSendBufferSize(int size)
Deprecated.SetsOptionUDT.System_Send_Buffer_Size
UdtServerChannelConfig
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.Sets the high water mark of the write buffer.UdtServerChannelConfig
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.Sets the low water mark of the write buffer.UdtServerChannelConfig
setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
Deprecated.Set theWriteBufferWaterMark
which is used for setting the high and low water mark of the write buffer.UdtServerChannelConfig
setWriteSpinCount(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.udt.UdtChannelConfig
getProtocolReceiveBufferSize, getProtocolSendBufferSize, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSystemReceiveBufferSize, getSystemSendBufferSize, isReuseAddress
-
-
-
-
Method Detail
-
getBacklog
int getBacklog()
Deprecated.GetsKindUDT.ACCEPTOR
channel backlog viaChannelOption.SO_BACKLOG
.
-
setBacklog
UdtServerChannelConfig setBacklog(int backlog)
Deprecated.SetsKindUDT.ACCEPTOR
channel backlog viaChannelOption.SO_BACKLOG
.
-
setConnectTimeoutMillis
UdtServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
Deprecated.Description copied from interface:ChannelConfig
Sets the connect timeout of the channel in milliseconds. If theChannel
does not support connect operation, this property is not used at all, and therefore will be ignored.- Specified by:
setConnectTimeoutMillis
in interfaceChannelConfig
- Specified by:
setConnectTimeoutMillis
in interfaceUdtChannelConfig
- Parameters:
connectTimeoutMillis
- the connect timeout in milliseconds.0
to disable.
-
setMaxMessagesPerRead
@Deprecated UdtServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerRead
in interfaceChannelConfig
- Specified by:
setMaxMessagesPerRead
in interfaceUdtChannelConfig
-
setWriteSpinCount
UdtServerChannelConfig setWriteSpinCount(int writeSpinCount)
Deprecated.Description copied from interface:ChannelConfig
Sets 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:
setWriteSpinCount
in interfaceChannelConfig
- Specified by:
setWriteSpinCount
in interfaceUdtChannelConfig
-
setAllocator
UdtServerChannelConfig setAllocator(ByteBufAllocator allocator)
Deprecated.Description copied from interface:ChannelConfig
Set theByteBufAllocator
which is used for the channel to allocate buffers.- Specified by:
setAllocator
in interfaceChannelConfig
- Specified by:
setAllocator
in interfaceUdtChannelConfig
-
setRecvByteBufAllocator
UdtServerChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.Description copied from interface:ChannelConfig
Set theRecvByteBufAllocator
which is used for the channel to allocate receive buffers.- Specified by:
setRecvByteBufAllocator
in interfaceChannelConfig
- Specified by:
setRecvByteBufAllocator
in interfaceUdtChannelConfig
-
setAutoRead
UdtServerChannelConfig setAutoRead(boolean autoRead)
Deprecated.Description copied from interface:ChannelConfig
Sets 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:
setAutoRead
in interfaceChannelConfig
- Specified by:
setAutoRead
in interfaceUdtChannelConfig
-
setAutoClose
UdtServerChannelConfig setAutoClose(boolean autoClose)
Deprecated.Description copied from interface:ChannelConfig
Sets whether theChannel
should be closed automatically and immediately on write failure. The default istrue
.- Specified by:
setAutoClose
in interfaceChannelConfig
- Specified by:
setAutoClose
in interfaceUdtChannelConfig
-
setProtocolReceiveBufferSize
UdtServerChannelConfig setProtocolReceiveBufferSize(int size)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.Protocol_Receive_Buffer_Size
- Specified by:
setProtocolReceiveBufferSize
in interfaceUdtChannelConfig
-
setProtocolSendBufferSize
UdtServerChannelConfig setProtocolSendBufferSize(int size)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.Protocol_Send_Buffer_Size
- Specified by:
setProtocolSendBufferSize
in interfaceUdtChannelConfig
-
setReceiveBufferSize
UdtServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_RCVBUF
option.- Specified by:
setReceiveBufferSize
in interfaceUdtChannelConfig
-
setReuseAddress
UdtServerChannelConfig setReuseAddress(boolean reuseAddress)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_REUSEADDR
option.- Specified by:
setReuseAddress
in interfaceUdtChannelConfig
-
setSendBufferSize
UdtServerChannelConfig setSendBufferSize(int sendBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_SNDBUF
option.- Specified by:
setSendBufferSize
in interfaceUdtChannelConfig
-
setSoLinger
UdtServerChannelConfig setSoLinger(int soLinger)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_LINGER
option.- Specified by:
setSoLinger
in interfaceUdtChannelConfig
-
setSystemReceiveBufferSize
UdtServerChannelConfig setSystemReceiveBufferSize(int size)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.System_Receive_Buffer_Size
- Specified by:
setSystemReceiveBufferSize
in interfaceUdtChannelConfig
-
setSystemSendBufferSize
UdtServerChannelConfig setSystemSendBufferSize(int size)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.System_Send_Buffer_Size
- Specified by:
setSystemSendBufferSize
in interfaceUdtChannelConfig
-
setWriteBufferHighWaterMark
UdtServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.Description copied from interface:ChannelConfig
Sets 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:
setWriteBufferHighWaterMark
in interfaceChannelConfig
- Specified by:
setWriteBufferHighWaterMark
in interfaceUdtChannelConfig
-
setWriteBufferLowWaterMark
UdtServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.Description copied from interface:ChannelConfig
Sets 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 returntrue
again.- Specified by:
setWriteBufferLowWaterMark
in interfaceChannelConfig
- Specified by:
setWriteBufferLowWaterMark
in interfaceUdtChannelConfig
-
setWriteBufferWaterMark
UdtServerChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
Deprecated.Description copied from interface:ChannelConfig
Set theWriteBufferWaterMark
which is used for setting the high and low water mark of the write buffer.- Specified by:
setWriteBufferWaterMark
in interfaceChannelConfig
- Specified by:
setWriteBufferWaterMark
in interfaceUdtChannelConfig
-
setMessageSizeEstimator
UdtServerChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.Description copied from interface:ChannelConfig
Set theMessageSizeEstimator
which is used for the channel to detect the size of a message.- Specified by:
setMessageSizeEstimator
in interfaceChannelConfig
- Specified by:
setMessageSizeEstimator
in interfaceUdtChannelConfig
-
-