public class DefaultSctpChannelConfig extends io.netty.channel.DefaultChannelConfig implements SctpChannelConfig
SctpChannelConfig
implementation for SCTP.Constructor and Description |
---|
DefaultSctpChannelConfig(SctpChannel channel,
SctpChannel javaChannel) |
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions
public DefaultSctpChannelConfig(SctpChannel channel, SctpChannel javaChannel)
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions
in interface io.netty.channel.ChannelConfig
getOptions
in class io.netty.channel.DefaultChannelConfig
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption
in interface io.netty.channel.ChannelConfig
getOption
in class io.netty.channel.DefaultChannelConfig
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
setOption
in interface io.netty.channel.ChannelConfig
setOption
in class io.netty.channel.DefaultChannelConfig
public boolean isSctpNoDelay()
SctpChannelConfig
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
.isSctpNoDelay
in interface SctpChannelConfig
public SctpChannelConfig setSctpNoDelay(boolean sctpNoDelay)
SctpChannelConfig
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
.setSctpNoDelay
in interface SctpChannelConfig
public int getSendBufferSize()
SctpChannelConfig
SO_SNDBUF
option.getSendBufferSize
in interface SctpChannelConfig
public SctpChannelConfig setSendBufferSize(int sendBufferSize)
SctpChannelConfig
SO_SNDBUF
option.setSendBufferSize
in interface SctpChannelConfig
public int getReceiveBufferSize()
SctpChannelConfig
SO_RCVBUF
option.getReceiveBufferSize
in interface SctpChannelConfig
public SctpChannelConfig setReceiveBufferSize(int receiveBufferSize)
SctpChannelConfig
SO_RCVBUF
option.setReceiveBufferSize
in interface SctpChannelConfig
public SctpStandardSocketOptions.InitMaxStreams getInitMaxStreams()
SctpChannelConfig
SCTP_INIT_MAXSTREAMS
option.getInitMaxStreams
in interface SctpChannelConfig
public SctpChannelConfig setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
SctpChannelConfig
SCTP_INIT_MAXSTREAMS
option.setInitMaxStreams
in interface SctpChannelConfig
public SctpChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface SctpChannelConfig
setConnectTimeoutMillis
in class io.netty.channel.DefaultChannelConfig
@Deprecated public SctpChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface SctpChannelConfig
setMaxMessagesPerRead
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface SctpChannelConfig
setWriteSpinCount
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface SctpChannelConfig
setAllocator
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface SctpChannelConfig
setRecvByteBufAllocator
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface SctpChannelConfig
setAutoRead
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
setAutoClose
in interface SctpChannelConfig
setAutoClose
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in interface SctpChannelConfig
setWriteBufferHighWaterMark
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in interface SctpChannelConfig
setWriteBufferLowWaterMark
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface SctpChannelConfig
setWriteBufferWaterMark
in class io.netty.channel.DefaultChannelConfig
public SctpChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface SctpChannelConfig
setMessageSizeEstimator
in class io.netty.channel.DefaultChannelConfig
Copyright © 2008–2017 The Netty Project. All rights reserved.