Package io.netty.channel.udt
Class DefaultUdtChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.udt.DefaultUdtChannelConfig
-
- All Implemented Interfaces:
ChannelConfig
,UdtChannelConfig
- Direct Known Subclasses:
DefaultUdtServerChannelConfig
@Deprecated public class DefaultUdtChannelConfig extends DefaultChannelConfig implements UdtChannelConfig
Deprecated.The UDT transport is no longer maintained and will be removed.The defaultUdtChannelConfig
implementation.
-
-
Field Summary
-
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel
-
-
Constructor Summary
Constructors Constructor Description DefaultUdtChannelConfig(UdtChannel channel, com.barchart.udt.nio.ChannelUDT channelUDT, boolean apply)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
apply(com.barchart.udt.nio.ChannelUDT channelUDT)
Deprecated.<T> T
getOption(ChannelOption<T> option)
Deprecated.Return the value of the givenChannelOption
java.util.Map<ChannelOption<?>,java.lang.Object>
getOptions()
Deprecated.Return all setChannelOption
's.int
getProtocolReceiveBufferSize()
Deprecated.GetsOptionUDT.Protocol_Receive_Buffer_Size
int
getProtocolSendBufferSize()
Deprecated.GetsOptionUDT.Protocol_Send_Buffer_Size
int
getReceiveBufferSize()
Deprecated.Gets theChannelOption.SO_RCVBUF
option.int
getSendBufferSize()
Deprecated.Gets theChannelOption.SO_SNDBUF
option.int
getSoLinger()
Deprecated.Gets theChannelOption.SO_LINGER
option.int
getSystemReceiveBufferSize()
Deprecated.GetsOptionUDT.System_Receive_Buffer_Size
int
getSystemSendBufferSize()
Deprecated.GetsOptionUDT.System_Send_Buffer_Size
boolean
isReuseAddress()
Deprecated.Gets theChannelOption.SO_REUSEADDR
option.UdtChannelConfig
setAllocator(ByteBufAllocator allocator)
Deprecated.Set theByteBufAllocator
which is used for the channel to allocate buffers.UdtChannelConfig
setAutoClose(boolean autoClose)
Deprecated.Sets whether theChannel
should be closed automatically and immediately on write failure.UdtChannelConfig
setAutoRead(boolean autoRead)
Deprecated.Sets ifChannelHandlerContext.read()
will be invoked automatically so that a user application doesn't need to call it at all.UdtChannelConfig
setConnectTimeoutMillis(int connectTimeoutMillis)
Deprecated.Sets the connect timeout of the channel in milliseconds.UdtChannelConfig
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.UdtChannelConfig
setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.Set theMessageSizeEstimator
which is used for the channel to detect the size of a message.<T> boolean
setOption(ChannelOption<T> option, T value)
Deprecated.Sets a configuration property with the specified name and value.UdtChannelConfig
setProtocolReceiveBufferSize(int protocolReceiveBufferSize)
Deprecated.SetsOptionUDT.Protocol_Receive_Buffer_Size
UdtChannelConfig
setProtocolSendBufferSize(int protocolSendBufferSize)
Deprecated.SetsOptionUDT.Protocol_Send_Buffer_Size
UdtChannelConfig
setReceiveBufferSize(int receiveBufferSize)
Deprecated.Sets theChannelOption.SO_RCVBUF
option.UdtChannelConfig
setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.Set theRecvByteBufAllocator
which is used for the channel to allocate receive buffers.UdtChannelConfig
setReuseAddress(boolean reuseAddress)
Deprecated.Sets theChannelOption.SO_REUSEADDR
option.UdtChannelConfig
setSendBufferSize(int sendBufferSize)
Deprecated.Sets theChannelOption.SO_SNDBUF
option.UdtChannelConfig
setSoLinger(int soLinger)
Deprecated.Sets theChannelOption.SO_LINGER
option.UdtChannelConfig
setSystemReceiveBufferSize(int systemReceiveBufferSize)
Deprecated.SetsOptionUDT.System_Receive_Buffer_Size
UdtChannelConfig
setSystemSendBufferSize(int systemSendBufferSize)
Deprecated.SetsOptionUDT.System_Send_Buffer_Size
UdtChannelConfig
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.Sets the high water mark of the write buffer.UdtChannelConfig
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.Sets the low water mark of the write buffer.UdtChannelConfig
setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
Deprecated.Set theWriteBufferWaterMark
which is used for setting the high and low water mark of the write buffer.UdtChannelConfig
setWriteSpinCount(int writeSpinCount)
Deprecated.Sets the maximum loop count for a write operation untilWritableByteChannel.write(ByteBuffer)
returns a non-zero value.-
Methods inherited from class io.netty.channel.DefaultChannelConfig
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setMaxMessagesPerWrite, setOptions, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions
-
-
-
-
Constructor Detail
-
DefaultUdtChannelConfig
public DefaultUdtChannelConfig(UdtChannel channel, com.barchart.udt.nio.ChannelUDT channelUDT, boolean apply) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
-
Method Detail
-
apply
protected void apply(com.barchart.udt.nio.ChannelUDT channelUDT) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
getProtocolReceiveBufferSize
public int getProtocolReceiveBufferSize()
Deprecated.Description copied from interface:UdtChannelConfig
GetsOptionUDT.Protocol_Receive_Buffer_Size
- Specified by:
getProtocolReceiveBufferSize
in interfaceUdtChannelConfig
-
getOption
public <T> T getOption(ChannelOption<T> option)
Deprecated.Description copied from interface:ChannelConfig
Return the value of the givenChannelOption
- Specified by:
getOption
in interfaceChannelConfig
- Overrides:
getOption
in classDefaultChannelConfig
-
getOptions
public java.util.Map<ChannelOption<?>,java.lang.Object> getOptions()
Deprecated.Description copied from interface:ChannelConfig
Return all setChannelOption
's.- Specified by:
getOptions
in interfaceChannelConfig
- Overrides:
getOptions
in classDefaultChannelConfig
-
getReceiveBufferSize
public int getReceiveBufferSize()
Deprecated.Description copied from interface:UdtChannelConfig
Gets theChannelOption.SO_RCVBUF
option.- Specified by:
getReceiveBufferSize
in interfaceUdtChannelConfig
-
getSendBufferSize
public int getSendBufferSize()
Deprecated.Description copied from interface:UdtChannelConfig
Gets theChannelOption.SO_SNDBUF
option.- Specified by:
getSendBufferSize
in interfaceUdtChannelConfig
-
getSoLinger
public int getSoLinger()
Deprecated.Description copied from interface:UdtChannelConfig
Gets theChannelOption.SO_LINGER
option.- Specified by:
getSoLinger
in interfaceUdtChannelConfig
-
isReuseAddress
public boolean isReuseAddress()
Deprecated.Description copied from interface:UdtChannelConfig
Gets theChannelOption.SO_REUSEADDR
option.- Specified by:
isReuseAddress
in interfaceUdtChannelConfig
-
setProtocolReceiveBufferSize
public UdtChannelConfig setProtocolReceiveBufferSize(int protocolReceiveBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.Protocol_Receive_Buffer_Size
- Specified by:
setProtocolReceiveBufferSize
in interfaceUdtChannelConfig
-
setOption
public <T> boolean setOption(ChannelOption<T> option, T value)
Deprecated.Description copied from interface:ChannelConfig
Sets a configuration property with the specified name and value. To override this method properly, you must call the super class:public boolean setOption(ChannelOption<T> option, T value) { if (super.setOption(option, value)) { return true; } if (option.equals(additionalOption)) { .... return true; } return false; }
- Specified by:
setOption
in interfaceChannelConfig
- Overrides:
setOption
in classDefaultChannelConfig
- Returns:
true
if and only if the property has been set
-
setReceiveBufferSize
public UdtChannelConfig setReceiveBufferSize(int receiveBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_RCVBUF
option.- Specified by:
setReceiveBufferSize
in interfaceUdtChannelConfig
-
setReuseAddress
public UdtChannelConfig setReuseAddress(boolean reuseAddress)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_REUSEADDR
option.- Specified by:
setReuseAddress
in interfaceUdtChannelConfig
-
setSendBufferSize
public UdtChannelConfig setSendBufferSize(int sendBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_SNDBUF
option.- Specified by:
setSendBufferSize
in interfaceUdtChannelConfig
-
setSoLinger
public UdtChannelConfig setSoLinger(int soLinger)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_LINGER
option.- Specified by:
setSoLinger
in interfaceUdtChannelConfig
-
getSystemReceiveBufferSize
public int getSystemReceiveBufferSize()
Deprecated.Description copied from interface:UdtChannelConfig
GetsOptionUDT.System_Receive_Buffer_Size
- Specified by:
getSystemReceiveBufferSize
in interfaceUdtChannelConfig
-
setSystemReceiveBufferSize
public UdtChannelConfig setSystemReceiveBufferSize(int systemReceiveBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.System_Receive_Buffer_Size
- Specified by:
setSystemReceiveBufferSize
in interfaceUdtChannelConfig
-
getProtocolSendBufferSize
public int getProtocolSendBufferSize()
Deprecated.Description copied from interface:UdtChannelConfig
GetsOptionUDT.Protocol_Send_Buffer_Size
- Specified by:
getProtocolSendBufferSize
in interfaceUdtChannelConfig
-
setProtocolSendBufferSize
public UdtChannelConfig setProtocolSendBufferSize(int protocolSendBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.Protocol_Send_Buffer_Size
- Specified by:
setProtocolSendBufferSize
in interfaceUdtChannelConfig
-
setSystemSendBufferSize
public UdtChannelConfig setSystemSendBufferSize(int systemSendBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.System_Send_Buffer_Size
- Specified by:
setSystemSendBufferSize
in interfaceUdtChannelConfig
-
getSystemSendBufferSize
public int getSystemSendBufferSize()
Deprecated.Description copied from interface:UdtChannelConfig
GetsOptionUDT.System_Send_Buffer_Size
- Specified by:
getSystemSendBufferSize
in interfaceUdtChannelConfig
-
setConnectTimeoutMillis
public UdtChannelConfig 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
- Overrides:
setConnectTimeoutMillis
in classDefaultChannelConfig
- Parameters:
connectTimeoutMillis
- the connect timeout in milliseconds.0
to disable.
-
setMaxMessagesPerRead
@Deprecated public UdtChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.Description copied from class:DefaultChannelConfig
- Specified by:
setMaxMessagesPerRead
in interfaceChannelConfig
- Specified by:
setMaxMessagesPerRead
in interfaceUdtChannelConfig
- Overrides:
setMaxMessagesPerRead
in classDefaultChannelConfig
-
setWriteSpinCount
public UdtChannelConfig 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
- Overrides:
setWriteSpinCount
in classDefaultChannelConfig
-
setAllocator
public UdtChannelConfig 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
- Overrides:
setAllocator
in classDefaultChannelConfig
-
setRecvByteBufAllocator
public UdtChannelConfig 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
- Overrides:
setRecvByteBufAllocator
in classDefaultChannelConfig
-
setAutoRead
public UdtChannelConfig 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
- Overrides:
setAutoRead
in classDefaultChannelConfig
-
setAutoClose
public UdtChannelConfig 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
- Overrides:
setAutoClose
in classDefaultChannelConfig
-
setWriteBufferLowWaterMark
public UdtChannelConfig 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
- Overrides:
setWriteBufferLowWaterMark
in classDefaultChannelConfig
-
setWriteBufferHighWaterMark
public UdtChannelConfig 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
- Overrides:
setWriteBufferHighWaterMark
in classDefaultChannelConfig
-
setWriteBufferWaterMark
public UdtChannelConfig 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
- Overrides:
setWriteBufferWaterMark
in classDefaultChannelConfig
-
setMessageSizeEstimator
public UdtChannelConfig 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
- Overrides:
setMessageSizeEstimator
in classDefaultChannelConfig
-
-