public class DefaultSctpServerChannelConfig extends io.netty.channel.DefaultChannelConfig implements SctpServerChannelConfig
SctpServerChannelConfig
implementation for SCTP.Constructor and Description |
---|
DefaultSctpServerChannelConfig(SctpServerChannel channel,
SctpServerChannel javaChannel)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getBacklog()
Gets the backlog value to specify when the channel binds to a local address.
|
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. |
SctpServerChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
SctpServerChannelConfig |
setAutoClose(boolean autoClose) |
SctpServerChannelConfig |
setAutoRead(boolean autoRead) |
SctpServerChannelConfig |
setBacklog(int backlog)
Sets the backlog value to specify when the channel binds to a local address.
|
SctpServerChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
SctpServerChannelConfig |
setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
Gets the
SCTP_INIT_MAXSTREAMS option. |
SctpServerChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
SctpServerChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
SctpServerChannelConfig |
setReceiveBufferSize(int receiveBufferSize)
Gets the
SO_RCVBUF option. |
SctpServerChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
SctpServerChannelConfig |
setSendBufferSize(int sendBufferSize)
Sets the
SO_SNDBUF option. |
SctpServerChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark) |
SctpServerChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark) |
SctpServerChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
SctpServerChannelConfig |
setWriteSpinCount(int writeSpinCount) |
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 DefaultSctpServerChannelConfig(SctpServerChannel channel, SctpServerChannel 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 int getSendBufferSize()
SctpServerChannelConfig
SO_SNDBUF
option.getSendBufferSize
in interface SctpServerChannelConfig
public SctpServerChannelConfig setSendBufferSize(int sendBufferSize)
SctpServerChannelConfig
SO_SNDBUF
option.setSendBufferSize
in interface SctpServerChannelConfig
public int getReceiveBufferSize()
SctpServerChannelConfig
SO_RCVBUF
option.getReceiveBufferSize
in interface SctpServerChannelConfig
public SctpServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
SctpServerChannelConfig
SO_RCVBUF
option.setReceiveBufferSize
in interface SctpServerChannelConfig
public SctpStandardSocketOptions.InitMaxStreams getInitMaxStreams()
SctpServerChannelConfig
SCTP_INIT_MAXSTREAMS
option.getInitMaxStreams
in interface SctpServerChannelConfig
public SctpServerChannelConfig setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
SctpServerChannelConfig
SCTP_INIT_MAXSTREAMS
option.setInitMaxStreams
in interface SctpServerChannelConfig
public int getBacklog()
SctpServerChannelConfig
getBacklog
in interface SctpServerChannelConfig
public SctpServerChannelConfig setBacklog(int backlog)
SctpServerChannelConfig
setBacklog
in interface SctpServerChannelConfig
@Deprecated public SctpServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface SctpServerChannelConfig
setMaxMessagesPerRead
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface SctpServerChannelConfig
setWriteSpinCount
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface SctpServerChannelConfig
setConnectTimeoutMillis
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface SctpServerChannelConfig
setAllocator
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface SctpServerChannelConfig
setRecvByteBufAllocator
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface SctpServerChannelConfig
setAutoRead
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
setAutoClose
in interface SctpServerChannelConfig
setAutoClose
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in interface SctpServerChannelConfig
setWriteBufferLowWaterMark
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in interface SctpServerChannelConfig
setWriteBufferHighWaterMark
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface SctpServerChannelConfig
setWriteBufferWaterMark
in class io.netty.channel.DefaultChannelConfig
public SctpServerChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface SctpServerChannelConfig
setMessageSizeEstimator
in class io.netty.channel.DefaultChannelConfig
Copyright © 2008–2017 The Netty Project. All rights reserved.