public interface UdtChannelConfig
extends io.netty.channel.ChannelConfig
ChannelConfig for a UdtChannel.
ChannelConfig,
UdtChannelConfig allows the following options in the option map:
| Name | Associated setter method |
|---|---|
ChannelOption.SO_REUSEADDR | setReuseAddress(boolean) |
ChannelOption.SO_RCVBUF | setReceiveBufferSize(int) |
ChannelOption.SO_SNDBUF | setSendBufferSize(int) |
ChannelOption.SO_REUSEADDR | setReuseAddress(boolean) |
ChannelOption.SO_LINGER | setSoLinger(int) |
ChannelOption.SO_RCVBUF | setReceiveBufferSize(int) |
ChannelOption.SO_SNDBUF | setSendBufferSize(int) |
UdtChannelOption.PROTOCOL_RECEIVE_BUFFER_SIZE |
setProtocolReceiveBufferSize(int) |
UdtChannelOption.PROTOCOL_SEND_BUFFER_SIZE |
setProtocolSendBufferSize(int) |
UdtChannelOption.SYSTEM_RECEIVE_BUFFER_SIZE |
setSystemReceiveBufferSize(int) |
UdtChannelOption.SYSTEM_SEND_BUFFER_SIZE |
setSystemSendBufferSize(int) |
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.
| Modifier and Type | Method and Description |
|---|---|
int |
getProtocolReceiveBufferSize()
Gets
OptionUDT.Protocol_Receive_Buffer_Size |
int |
getProtocolSendBufferSize()
Gets
OptionUDT.Protocol_Send_Buffer_Size |
int |
getReceiveBufferSize()
Gets the
ChannelOption.SO_RCVBUF option. |
int |
getSendBufferSize()
Gets the
ChannelOption.SO_SNDBUF option. |
int |
getSoLinger()
Gets the
ChannelOption.SO_LINGER option. |
int |
getSystemReceiveBufferSize()
Gets
OptionUDT.System_Receive_Buffer_Size |
int |
getSystemSendBufferSize()
Gets
OptionUDT.System_Send_Buffer_Size |
boolean |
isReuseAddress()
Gets the
ChannelOption.SO_REUSEADDR option. |
UdtChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
UdtChannelConfig |
setAutoRead(boolean autoRead) |
UdtChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
UdtChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead) |
UdtChannelConfig |
setProtocolReceiveBufferSize(int size)
Sets
OptionUDT.Protocol_Receive_Buffer_Size |
UdtChannelConfig |
setProtocolSendBufferSize(int size)
Sets
OptionUDT.Protocol_Send_Buffer_Size |
UdtChannelConfig |
setReceiveBufferSize(int receiveBufferSize)
Sets the
ChannelOption.SO_RCVBUF option. |
UdtChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
UdtChannelConfig |
setReuseAddress(boolean reuseAddress)
Sets the
ChannelOption.SO_REUSEADDR option. |
UdtChannelConfig |
setSendBufferSize(int sendBufferSize)
Sets the
ChannelOption.SO_SNDBUF option. |
UdtChannelConfig |
setSoLinger(int soLinger)
Sets the
ChannelOption.SO_LINGER option. |
UdtChannelConfig |
setSystemReceiveBufferSize(int size)
Sets
OptionUDT.System_Receive_Buffer_Size |
UdtChannelConfig |
setSystemSendBufferSize(int size)
Sets
OptionUDT.System_Send_Buffer_Size |
UdtChannelConfig |
setWriteSpinCount(int writeSpinCount) |
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getOption, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoRead, setOption, setOptions, setWriteBufferHighWaterMark, setWriteBufferLowWaterMarkint getProtocolReceiveBufferSize()
OptionUDT.Protocol_Receive_Buffer_Sizeint getProtocolSendBufferSize()
OptionUDT.Protocol_Send_Buffer_Sizeint getReceiveBufferSize()
ChannelOption.SO_RCVBUF option.int getSendBufferSize()
ChannelOption.SO_SNDBUF option.int getSoLinger()
ChannelOption.SO_LINGER option.int getSystemReceiveBufferSize()
OptionUDT.System_Receive_Buffer_Sizeint getSystemSendBufferSize()
OptionUDT.System_Send_Buffer_Sizeboolean isReuseAddress()
ChannelOption.SO_REUSEADDR option.UdtChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigUdtChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigUdtChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigUdtChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigUdtChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigUdtChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigUdtChannelConfig setProtocolReceiveBufferSize(int size)
OptionUDT.Protocol_Receive_Buffer_SizeUdtChannelConfig setProtocolSendBufferSize(int size)
OptionUDT.Protocol_Send_Buffer_SizeUdtChannelConfig setReceiveBufferSize(int receiveBufferSize)
ChannelOption.SO_RCVBUF option.UdtChannelConfig setReuseAddress(boolean reuseAddress)
ChannelOption.SO_REUSEADDR option.UdtChannelConfig setSendBufferSize(int sendBufferSize)
ChannelOption.SO_SNDBUF option.UdtChannelConfig setSoLinger(int soLinger)
ChannelOption.SO_LINGER option.UdtChannelConfig setSystemReceiveBufferSize(int size)
OptionUDT.System_Receive_Buffer_SizeUdtChannelConfig setSystemSendBufferSize(int size)
OptionUDT.System_Send_Buffer_SizeCopyright © 2008–2013 The Netty Project. All rights reserved.