public class DefaultUdtChannelConfig extends io.netty.channel.DefaultChannelConfig implements UdtChannelConfig
UdtChannelConfig implementation.| Constructor and Description |
|---|
DefaultUdtChannelConfig(UdtChannel channel,
com.barchart.udt.nio.ChannelUDT channelUDT,
boolean apply) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(com.barchart.udt.nio.ChannelUDT channelUDT) |
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
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 |
setAutoClose(boolean autoClose) |
UdtChannelConfig |
setAutoRead(boolean autoRead) |
UdtChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
UdtChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead) |
UdtChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
UdtChannelConfig |
setProtocolReceiveBufferSize(int protocolReceiveBufferSize)
Sets
OptionUDT.Protocol_Receive_Buffer_Size |
UdtChannelConfig |
setProtocolSendBufferSize(int protocolSendBufferSize)
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 systemSendBufferSize)
Sets
OptionUDT.System_Receive_Buffer_Size |
UdtChannelConfig |
setSystemSendBufferSize(int systemReceiveBufferSize)
Sets
OptionUDT.System_Send_Buffer_Size |
UdtChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
UdtChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
UdtChannelConfig |
setWriteSpinCount(int writeSpinCount) |
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validatepublic DefaultUdtChannelConfig(UdtChannel channel, com.barchart.udt.nio.ChannelUDT channelUDT, boolean apply) throws IOException
IOExceptionprotected void apply(com.barchart.udt.nio.ChannelUDT channelUDT)
throws IOException
IOExceptionpublic int getProtocolReceiveBufferSize()
UdtChannelConfigOptionUDT.Protocol_Receive_Buffer_SizegetProtocolReceiveBufferSize in interface UdtChannelConfigpublic <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption in interface io.netty.channel.ChannelConfiggetOption in class io.netty.channel.DefaultChannelConfigpublic Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions in interface io.netty.channel.ChannelConfiggetOptions in class io.netty.channel.DefaultChannelConfigpublic int getReceiveBufferSize()
UdtChannelConfigChannelOption.SO_RCVBUF option.getReceiveBufferSize in interface UdtChannelConfigpublic int getSendBufferSize()
UdtChannelConfigChannelOption.SO_SNDBUF option.getSendBufferSize in interface UdtChannelConfigpublic int getSoLinger()
UdtChannelConfigChannelOption.SO_LINGER option.getSoLinger in interface UdtChannelConfigpublic boolean isReuseAddress()
UdtChannelConfigChannelOption.SO_REUSEADDR option.isReuseAddress in interface UdtChannelConfigpublic UdtChannelConfig setProtocolReceiveBufferSize(int protocolReceiveBufferSize)
UdtChannelConfigOptionUDT.Protocol_Receive_Buffer_SizesetProtocolReceiveBufferSize in interface UdtChannelConfigpublic <T> boolean setOption(io.netty.channel.ChannelOption<T> option,
T value)
setOption in interface io.netty.channel.ChannelConfigsetOption in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setReceiveBufferSize(int receiveBufferSize)
UdtChannelConfigChannelOption.SO_RCVBUF option.setReceiveBufferSize in interface UdtChannelConfigpublic UdtChannelConfig setReuseAddress(boolean reuseAddress)
UdtChannelConfigChannelOption.SO_REUSEADDR option.setReuseAddress in interface UdtChannelConfigpublic UdtChannelConfig setSendBufferSize(int sendBufferSize)
UdtChannelConfigChannelOption.SO_SNDBUF option.setSendBufferSize in interface UdtChannelConfigpublic UdtChannelConfig setSoLinger(int soLinger)
UdtChannelConfigChannelOption.SO_LINGER option.setSoLinger in interface UdtChannelConfigpublic int getSystemReceiveBufferSize()
UdtChannelConfigOptionUDT.System_Receive_Buffer_SizegetSystemReceiveBufferSize in interface UdtChannelConfigpublic UdtChannelConfig setSystemSendBufferSize(int systemReceiveBufferSize)
UdtChannelConfigOptionUDT.System_Send_Buffer_SizesetSystemSendBufferSize in interface UdtChannelConfigpublic int getProtocolSendBufferSize()
UdtChannelConfigOptionUDT.Protocol_Send_Buffer_SizegetProtocolSendBufferSize in interface UdtChannelConfigpublic UdtChannelConfig setProtocolSendBufferSize(int protocolSendBufferSize)
UdtChannelConfigOptionUDT.Protocol_Send_Buffer_SizesetProtocolSendBufferSize in interface UdtChannelConfigpublic UdtChannelConfig setSystemReceiveBufferSize(int systemSendBufferSize)
UdtChannelConfigOptionUDT.System_Receive_Buffer_SizesetSystemReceiveBufferSize in interface UdtChannelConfigpublic int getSystemSendBufferSize()
UdtChannelConfigOptionUDT.System_Send_Buffer_SizegetSystemSendBufferSize in interface UdtChannelConfigpublic UdtChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface UdtChannelConfigsetConnectTimeoutMillis in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface UdtChannelConfigsetMaxMessagesPerRead in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface UdtChannelConfigsetWriteSpinCount in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface UdtChannelConfigsetAllocator in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface UdtChannelConfigsetRecvByteBufAllocator in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface UdtChannelConfigsetAutoRead in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setAutoClose(boolean autoClose)
setAutoClose in interface io.netty.channel.ChannelConfigsetAutoClose in interface UdtChannelConfigsetAutoClose in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in interface UdtChannelConfigsetWriteBufferLowWaterMark in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in interface UdtChannelConfigsetWriteBufferHighWaterMark in class io.netty.channel.DefaultChannelConfigpublic UdtChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface UdtChannelConfigsetMessageSizeEstimator in class io.netty.channel.DefaultChannelConfigCopyright © 2008–2015 The Netty Project. All rights reserved.