public interface SctpChannelConfig
extends io.netty.channel.ChannelConfig
ChannelConfig
for a SctpChannel
.
ChannelConfig
,
SctpChannelConfig
allows the following options in the option map:
Name | Associated setter method |
---|---|
ChannelOption.SO_RCVBUF | setReceiveBufferSize(int) |
ChannelOption.SO_SNDBUF | setSendBufferSize(int) |
SctpChannelOption.SCTP_NODELAY | setSctpNoDelay(boolean) } |
SctpChannelOption.SCTP_INIT_MAXSTREAMS | #setInitMaxStreams(InitMaxStreams) |
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOption, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOption, setOptions
boolean isSctpNoDelay()
SCTP_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
.SctpChannelConfig setSctpNoDelay(boolean sctpNoDelay)
SCTP_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
.int getSendBufferSize()
SO_SNDBUF
option.SctpChannelConfig setSendBufferSize(int sendBufferSize)
SO_SNDBUF
option.int getReceiveBufferSize()
SO_RCVBUF
option.SctpChannelConfig setReceiveBufferSize(int receiveBufferSize)
SO_RCVBUF
option.SctpStandardSocketOptions.InitMaxStreams getInitMaxStreams()
SCTP_INIT_MAXSTREAMS
option.SctpChannelConfig setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
SCTP_INIT_MAXSTREAMS
option.SctpChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
@Deprecated SctpChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
SctpChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
Copyright © 2008–2021 The Netty Project. All rights reserved.