Package io.netty.channel.udt
Class DefaultUdtServerChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.udt.DefaultUdtChannelConfig
-
- io.netty.channel.udt.DefaultUdtServerChannelConfig
-
- All Implemented Interfaces:
ChannelConfig
,UdtChannelConfig
,UdtServerChannelConfig
@Deprecated public class DefaultUdtServerChannelConfig extends DefaultUdtChannelConfig implements UdtServerChannelConfig
Deprecated.The UDT transport is no longer maintained and will be removed.The defaultUdtServerChannelConfig
implementation.
-
-
Field Summary
-
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel
-
-
Constructor Summary
Constructors Constructor Description DefaultUdtServerChannelConfig(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.int
getBacklog()
Deprecated.GetsKindUDT.ACCEPTOR
channel backlog viaChannelOption.SO_BACKLOG
.<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.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.<T> boolean
setOption(ChannelOption<T> option, T value)
Deprecated.Sets a configuration property with the specified name and value.UdtServerChannelConfig
setProtocolReceiveBufferSize(int protocolReceiveBufferSize)
Deprecated.SetsOptionUDT.Protocol_Receive_Buffer_Size
UdtServerChannelConfig
setProtocolSendBufferSize(int protocolSendBufferSize)
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 systemReceiveBufferSize)
Deprecated.SetsOptionUDT.System_Receive_Buffer_Size
UdtServerChannelConfig
setSystemSendBufferSize(int systemSendBufferSize)
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 class io.netty.channel.udt.DefaultUdtChannelConfig
getProtocolReceiveBufferSize, getProtocolSendBufferSize, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSystemReceiveBufferSize, getSystemSendBufferSize, isReuseAddress
-
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
-
Methods inherited from interface io.netty.channel.udt.UdtChannelConfig
getProtocolReceiveBufferSize, getProtocolSendBufferSize, getReceiveBufferSize, getSendBufferSize, getSoLinger, getSystemReceiveBufferSize, getSystemSendBufferSize, isReuseAddress
-
-
-
-
Constructor Detail
-
DefaultUdtServerChannelConfig
public DefaultUdtServerChannelConfig(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.- Overrides:
apply
in classDefaultUdtChannelConfig
- Throws:
java.io.IOException
-
getBacklog
public int getBacklog()
Deprecated.Description copied from interface:UdtServerChannelConfig
GetsKindUDT.ACCEPTOR
channel backlog viaChannelOption.SO_BACKLOG
.- Specified by:
getBacklog
in interfaceUdtServerChannelConfig
-
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 classDefaultUdtChannelConfig
-
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 classDefaultUdtChannelConfig
-
setBacklog
public UdtServerChannelConfig setBacklog(int backlog)
Deprecated.Description copied from interface:UdtServerChannelConfig
SetsKindUDT.ACCEPTOR
channel backlog viaChannelOption.SO_BACKLOG
.- Specified by:
setBacklog
in interfaceUdtServerChannelConfig
-
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 classDefaultUdtChannelConfig
- Returns:
true
if and only if the property has been set
-
setProtocolReceiveBufferSize
public UdtServerChannelConfig setProtocolReceiveBufferSize(int protocolReceiveBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.Protocol_Receive_Buffer_Size
- Specified by:
setProtocolReceiveBufferSize
in interfaceUdtChannelConfig
- Specified by:
setProtocolReceiveBufferSize
in interfaceUdtServerChannelConfig
- Overrides:
setProtocolReceiveBufferSize
in classDefaultUdtChannelConfig
-
setProtocolSendBufferSize
public UdtServerChannelConfig setProtocolSendBufferSize(int protocolSendBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.Protocol_Send_Buffer_Size
- Specified by:
setProtocolSendBufferSize
in interfaceUdtChannelConfig
- Specified by:
setProtocolSendBufferSize
in interfaceUdtServerChannelConfig
- Overrides:
setProtocolSendBufferSize
in classDefaultUdtChannelConfig
-
setReceiveBufferSize
public UdtServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_RCVBUF
option.- Specified by:
setReceiveBufferSize
in interfaceUdtChannelConfig
- Specified by:
setReceiveBufferSize
in interfaceUdtServerChannelConfig
- Overrides:
setReceiveBufferSize
in classDefaultUdtChannelConfig
-
setReuseAddress
public UdtServerChannelConfig setReuseAddress(boolean reuseAddress)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_REUSEADDR
option.- Specified by:
setReuseAddress
in interfaceUdtChannelConfig
- Specified by:
setReuseAddress
in interfaceUdtServerChannelConfig
- Overrides:
setReuseAddress
in classDefaultUdtChannelConfig
-
setSendBufferSize
public UdtServerChannelConfig setSendBufferSize(int sendBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_SNDBUF
option.- Specified by:
setSendBufferSize
in interfaceUdtChannelConfig
- Specified by:
setSendBufferSize
in interfaceUdtServerChannelConfig
- Overrides:
setSendBufferSize
in classDefaultUdtChannelConfig
-
setSoLinger
public UdtServerChannelConfig setSoLinger(int soLinger)
Deprecated.Description copied from interface:UdtChannelConfig
Sets theChannelOption.SO_LINGER
option.- Specified by:
setSoLinger
in interfaceUdtChannelConfig
- Specified by:
setSoLinger
in interfaceUdtServerChannelConfig
- Overrides:
setSoLinger
in classDefaultUdtChannelConfig
-
setSystemReceiveBufferSize
public UdtServerChannelConfig setSystemReceiveBufferSize(int systemReceiveBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.System_Receive_Buffer_Size
- Specified by:
setSystemReceiveBufferSize
in interfaceUdtChannelConfig
- Specified by:
setSystemReceiveBufferSize
in interfaceUdtServerChannelConfig
- Overrides:
setSystemReceiveBufferSize
in classDefaultUdtChannelConfig
-
setSystemSendBufferSize
public UdtServerChannelConfig setSystemSendBufferSize(int systemSendBufferSize)
Deprecated.Description copied from interface:UdtChannelConfig
SetsOptionUDT.System_Send_Buffer_Size
- Specified by:
setSystemSendBufferSize
in interfaceUdtChannelConfig
- Specified by:
setSystemSendBufferSize
in interfaceUdtServerChannelConfig
- Overrides:
setSystemSendBufferSize
in classDefaultUdtChannelConfig
-
setConnectTimeoutMillis
public 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
- Specified by:
setConnectTimeoutMillis
in interfaceUdtServerChannelConfig
- Overrides:
setConnectTimeoutMillis
in classDefaultUdtChannelConfig
- Parameters:
connectTimeoutMillis
- the connect timeout in milliseconds.0
to disable.
-
setMaxMessagesPerRead
@Deprecated public UdtServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.Description copied from class:DefaultChannelConfig
- Specified by:
setMaxMessagesPerRead
in interfaceChannelConfig
- Specified by:
setMaxMessagesPerRead
in interfaceUdtChannelConfig
- Specified by:
setMaxMessagesPerRead
in interfaceUdtServerChannelConfig
- Overrides:
setMaxMessagesPerRead
in classDefaultUdtChannelConfig
-
setWriteSpinCount
public 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
- Specified by:
setWriteSpinCount
in interfaceUdtServerChannelConfig
- Overrides:
setWriteSpinCount
in classDefaultUdtChannelConfig
-
setAllocator
public 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
- Specified by:
setAllocator
in interfaceUdtServerChannelConfig
- Overrides:
setAllocator
in classDefaultUdtChannelConfig
-
setRecvByteBufAllocator
public 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
- Specified by:
setRecvByteBufAllocator
in interfaceUdtServerChannelConfig
- Overrides:
setRecvByteBufAllocator
in classDefaultUdtChannelConfig
-
setAutoRead
public 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
- Specified by:
setAutoRead
in interfaceUdtServerChannelConfig
- Overrides:
setAutoRead
in classDefaultUdtChannelConfig
-
setAutoClose
public 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
- Specified by:
setAutoClose
in interfaceUdtServerChannelConfig
- Overrides:
setAutoClose
in classDefaultUdtChannelConfig
-
setWriteBufferLowWaterMark
public 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
- Specified by:
setWriteBufferLowWaterMark
in interfaceUdtServerChannelConfig
- Overrides:
setWriteBufferLowWaterMark
in classDefaultUdtChannelConfig
-
setWriteBufferHighWaterMark
public 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
- Specified by:
setWriteBufferHighWaterMark
in interfaceUdtServerChannelConfig
- Overrides:
setWriteBufferHighWaterMark
in classDefaultUdtChannelConfig
-
setWriteBufferWaterMark
public 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
- Specified by:
setWriteBufferWaterMark
in interfaceUdtServerChannelConfig
- Overrides:
setWriteBufferWaterMark
in classDefaultUdtChannelConfig
-
setMessageSizeEstimator
public 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
- Specified by:
setMessageSizeEstimator
in interfaceUdtServerChannelConfig
- Overrides:
setMessageSizeEstimator
in classDefaultUdtChannelConfig
-
-