public class DefaultSctpChannelConfig extends io.netty.channel.DefaultChannelConfig implements SctpChannelConfig
SctpChannelConfig implementation for SCTP.| Constructor and Description |
|---|
DefaultSctpChannelConfig(SctpChannel channel,
SctpChannel javaChannel) |
| Modifier and Type | Method and Description |
|---|---|
SctpStandardSocketOptions.InitMaxStreams |
getInitMaxStreams()
Gets the
SCTP_INIT_MAXSTREAMS option. |
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
int |
getReceiveBufferSize()
Gets the
SO_RCVBUF option. |
int |
getSendBufferSize()
Gets the
SO_SNDBUF option. |
boolean |
isSctpNoDelay()
Gets the
SCTP_NODELAY option. |
SctpChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
SctpChannelConfig |
setAutoRead(boolean autoRead) |
SctpChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
SctpChannelConfig |
setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
Gets the
SCTP_INIT_MAXSTREAMS option. |
SctpChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead) |
SctpChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
SctpChannelConfig |
setReceiveBufferSize(int receiveBufferSize)
Gets the
SO_RCVBUF option. |
SctpChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
SctpChannelConfig |
setSctpNoDelay(boolean sctpNoDelay)
Sets the
SCTP_NODELAY option. |
SctpChannelConfig |
setSendBufferSize(int sendBufferSize)
Sets the
SO_SNDBUF option. |
SctpChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
SctpChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
SctpChannelConfig |
setWriteSpinCount(int writeSpinCount) |
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoRead, setOptions, validatepublic DefaultSctpChannelConfig(SctpChannel channel, SctpChannel javaChannel)
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions in interface io.netty.channel.ChannelConfiggetOptions in class io.netty.channel.DefaultChannelConfigpublic <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption in interface io.netty.channel.ChannelConfiggetOption in class io.netty.channel.DefaultChannelConfigpublic <T> boolean setOption(io.netty.channel.ChannelOption<T> option,
T value)
setOption in interface io.netty.channel.ChannelConfigsetOption in class io.netty.channel.DefaultChannelConfigpublic boolean isSctpNoDelay()
SctpChannelConfigSCTP_NODELAY option. Please note that the default value of this option is true unlike the
operating system default (false). However, for some buggy platforms, such as Android, that shows erratic
behavior with Nagle's algorithm disabled, the default value remains to be false.isSctpNoDelay in interface SctpChannelConfigpublic SctpChannelConfig setSctpNoDelay(boolean sctpNoDelay)
SctpChannelConfigSCTP_NODELAY option. Please note that the default value of this option is true unlike the
operating system default (false). However, for some buggy platforms, such as Android, that shows erratic
behavior with Nagle's algorithm disabled, the default value remains to be false.setSctpNoDelay in interface SctpChannelConfigpublic int getSendBufferSize()
SctpChannelConfigSO_SNDBUF option.getSendBufferSize in interface SctpChannelConfigpublic SctpChannelConfig setSendBufferSize(int sendBufferSize)
SctpChannelConfigSO_SNDBUF option.setSendBufferSize in interface SctpChannelConfigpublic int getReceiveBufferSize()
SctpChannelConfigSO_RCVBUF option.getReceiveBufferSize in interface SctpChannelConfigpublic SctpChannelConfig setReceiveBufferSize(int receiveBufferSize)
SctpChannelConfigSO_RCVBUF option.setReceiveBufferSize in interface SctpChannelConfigpublic SctpStandardSocketOptions.InitMaxStreams getInitMaxStreams()
SctpChannelConfigSCTP_INIT_MAXSTREAMS option.getInitMaxStreams in interface SctpChannelConfigpublic SctpChannelConfig setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
SctpChannelConfigSCTP_INIT_MAXSTREAMS option.setInitMaxStreams in interface SctpChannelConfigpublic SctpChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface SctpChannelConfigsetConnectTimeoutMillis in class io.netty.channel.DefaultChannelConfigpublic SctpChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface SctpChannelConfigsetMaxMessagesPerRead in class io.netty.channel.DefaultChannelConfigpublic SctpChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface SctpChannelConfigsetWriteSpinCount in class io.netty.channel.DefaultChannelConfigpublic SctpChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface SctpChannelConfigsetAllocator in class io.netty.channel.DefaultChannelConfigpublic SctpChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface SctpChannelConfigsetRecvByteBufAllocator in class io.netty.channel.DefaultChannelConfigpublic SctpChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface SctpChannelConfigsetAutoRead in class io.netty.channel.DefaultChannelConfigpublic SctpChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in interface SctpChannelConfigsetWriteBufferHighWaterMark in class io.netty.channel.DefaultChannelConfigpublic SctpChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in interface SctpChannelConfigsetWriteBufferLowWaterMark in class io.netty.channel.DefaultChannelConfigpublic SctpChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface SctpChannelConfigsetMessageSizeEstimator in class io.netty.channel.DefaultChannelConfigCopyright © 2008–2013 The Netty Project. All rights reserved.