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 |
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) |
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 |
setWriteSpinCount(int writeSpinCount) |
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteSpinCount, isAutoRead, setOptions, validatepublic DefaultSctpServerChannelConfig(SctpServerChannel channel, SctpServerChannel 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 int getSendBufferSize()
SctpServerChannelConfigSO_SNDBUF option.getSendBufferSize in interface SctpServerChannelConfigpublic SctpServerChannelConfig setSendBufferSize(int sendBufferSize)
SctpServerChannelConfigSO_SNDBUF option.setSendBufferSize in interface SctpServerChannelConfigpublic int getReceiveBufferSize()
SctpServerChannelConfigSO_RCVBUF option.getReceiveBufferSize in interface SctpServerChannelConfigpublic SctpServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
SctpServerChannelConfigSO_RCVBUF option.setReceiveBufferSize in interface SctpServerChannelConfigpublic SctpStandardSocketOptions.InitMaxStreams getInitMaxStreams()
SctpServerChannelConfigSCTP_INIT_MAXSTREAMS option.getInitMaxStreams in interface SctpServerChannelConfigpublic SctpServerChannelConfig setInitMaxStreams(SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
SctpServerChannelConfigSCTP_INIT_MAXSTREAMS option.setInitMaxStreams in interface SctpServerChannelConfigpublic int getBacklog()
SctpServerChannelConfiggetBacklog in interface SctpServerChannelConfigpublic SctpServerChannelConfig setBacklog(int backlog)
SctpServerChannelConfigsetBacklog in interface SctpServerChannelConfigpublic SctpServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead in interface io.netty.channel.ChannelConfigsetMaxMessagesPerRead in interface SctpServerChannelConfigsetMaxMessagesPerRead in class io.netty.channel.DefaultChannelConfigpublic SctpServerChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount in interface io.netty.channel.ChannelConfigsetWriteSpinCount in interface SctpServerChannelConfigsetWriteSpinCount in class io.netty.channel.DefaultChannelConfigpublic SctpServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis in interface io.netty.channel.ChannelConfigsetConnectTimeoutMillis in interface SctpServerChannelConfigsetConnectTimeoutMillis in class io.netty.channel.DefaultChannelConfigpublic SctpServerChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator in interface io.netty.channel.ChannelConfigsetAllocator in interface SctpServerChannelConfigsetAllocator in class io.netty.channel.DefaultChannelConfigpublic SctpServerChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator in interface io.netty.channel.ChannelConfigsetRecvByteBufAllocator in interface SctpServerChannelConfigsetRecvByteBufAllocator in class io.netty.channel.DefaultChannelConfigpublic SctpServerChannelConfig setAutoRead(boolean autoRead)
setAutoRead in interface io.netty.channel.ChannelConfigsetAutoRead in interface SctpServerChannelConfigsetAutoRead in class io.netty.channel.DefaultChannelConfigpublic SctpServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferLowWaterMark in interface SctpServerChannelConfigsetWriteBufferLowWaterMark in class io.netty.channel.DefaultChannelConfigpublic SctpServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark in interface io.netty.channel.ChannelConfigsetWriteBufferHighWaterMark in interface SctpServerChannelConfigsetWriteBufferHighWaterMark in class io.netty.channel.DefaultChannelConfigpublic SctpServerChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator in interface io.netty.channel.ChannelConfigsetMessageSizeEstimator in interface SctpServerChannelConfigsetMessageSizeEstimator in class io.netty.channel.DefaultChannelConfigCopyright © 2008–2013 The Netty Project. All rights reserved.