public class DefaultSctpServerChannelConfig extends DefaultChannelConfig implements SctpServerChannelConfig
SctpServerChannelConfig实现。
channel| Constructor and Description |
|---|
DefaultSctpServerChannelConfig(SctpServerChannel channel, com.sun.nio.sctp.SctpServerChannel javaChannel)
创建一个新的实例。
|
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptionspublic DefaultSctpServerChannelConfig(SctpServerChannel channel, com.sun.nio.sctp.SctpServerChannel javaChannel)
public java.util.Map<ChannelOption<?>,java.lang.Object> getOptions()
ChannelConfig复制的描述
ChannelOption的。
getOptions ,界面
ChannelConfig
getOptions在课堂上
DefaultChannelConfig
public <T> T getOption(ChannelOption<T> option)
ChannelConfig复制的描述
ChannelOption的值
getOption在界面
ChannelConfig
getOption在课堂上
DefaultChannelConfig
public <T> boolean setOption(ChannelOption<T> option, T value)
ChannelConfig
public boolean setOption(ChannelOption<T> option, T value) {
if (super.setOption(option, value)) {
return true;
}
if (option.equals(additionalOption)) {
....
return true;
}
return false;
}
setOption ,界面
ChannelConfig
setOption在课堂上
DefaultChannelConfig
true当且仅当该属性已设置
public int getSendBufferSize()
SctpServerChannelConfig复制的描述
SO_SNDBUF选项。
getSendBufferSize在界面
SctpServerChannelConfig
public SctpServerChannelConfig setSendBufferSize(int sendBufferSize)
SctpServerChannelConfig复制的描述
SO_SNDBUF选项。
setSendBufferSize ,界面
SctpServerChannelConfig
public int getReceiveBufferSize()
SctpServerChannelConfig复制的描述
SO_RCVBUF选项。
getReceiveBufferSize ,界面
SctpServerChannelConfig
public SctpServerChannelConfig setReceiveBufferSize(int receiveBufferSize)
SctpServerChannelConfig
SO_RCVBUF选项。
setReceiveBufferSize ,界面
SctpServerChannelConfig
public com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams getInitMaxStreams()
SctpServerChannelConfig复制的描述
SCTP_INIT_MAXSTREAMS选项。
getInitMaxStreams ,界面
SctpServerChannelConfig
public SctpServerChannelConfig setInitMaxStreams(com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams initMaxStreams)
SctpServerChannelConfig
SCTP_INIT_MAXSTREAMS选项。
setInitMaxStreams ,界面
SctpServerChannelConfig
public int getBacklog()
SctpServerChannelConfig复制的描述
getBacklog接口
SctpServerChannelConfig
public SctpServerChannelConfig setBacklog(int backlog)
SctpServerChannelConfig复制的描述
setBacklog在界面
SctpServerChannelConfig
@Deprecated public SctpServerChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
DefaultChannelConfig
setMaxMessagesPerRead ,界面
ChannelConfig
setMaxMessagesPerRead在界面
SctpServerChannelConfig
setMaxMessagesPerRead在课堂
DefaultChannelConfig
public SctpServerChannelConfig setWriteSpinCount(int writeSpinCount)
ChannelConfig复制的描述
WritableByteChannel.write(ByteBuffer)返回非零值。
它类似于在并发编程中使用自旋锁。
它可以提高内存利用率并根据运行JVM的平台来编写吞吐量。
默认值是16 。
setWriteSpinCount ,界面
ChannelConfig
setWriteSpinCount ,界面
SctpServerChannelConfig
setWriteSpinCount class
DefaultChannelConfig
public SctpServerChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
ChannelConfig复制的描述
Channel不支持连接操作,则完全不使用此属性,因此将被忽略。
setConnectTimeoutMillis ,界面
ChannelConfig
setConnectTimeoutMillis ,界面
SctpServerChannelConfig
setConnectTimeoutMillis在课堂上
DefaultChannelConfig
connectTimeoutMillis - 以毫秒为单位的连接超时。
0禁用。
public SctpServerChannelConfig setAllocator(ByteBufAllocator allocator)
ChannelConfig复制的描述
ByteBufAllocator 。
setAllocator ,界面
ChannelConfig
setAllocator ,界面
SctpServerChannelConfig
setAllocator在课堂上
DefaultChannelConfig
public SctpServerChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator)
ChannelConfig复制的描述
RecvByteBufAllocator 。
setRecvByteBufAllocator在界面
ChannelConfig
setRecvByteBufAllocator ,界面
SctpServerChannelConfig
setRecvByteBufAllocator
DefaultChannelConfig
public SctpServerChannelConfig setAutoRead(boolean autoRead)
ChannelConfig复制的描述
ChannelHandlerContext.read(),以便用户应用程序根本不需要调用它。
默认值是true 。
setAutoRead ,界面
ChannelConfig
setAutoRead ,界面
SctpServerChannelConfig
setAutoRead在课堂上
DefaultChannelConfig
public SctpServerChannelConfig setAutoClose(boolean autoClose)
setAutoClose ,界面
ChannelConfig
setAutoClose ,界面
SctpServerChannelConfig
setAutoClose在类
DefaultChannelConfig
public SctpServerChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
ChannelConfig
设置写入缓冲区的低水位标志。 一旦写入缓冲器中排队的字节数超过了high water mark ,然后下降到该值以下, Channel.isWritable()将再次返回true 。
setWriteBufferLowWaterMark ,界面
ChannelConfig
setWriteBufferLowWaterMark在界面
SctpServerChannelConfig
setWriteBufferLowWaterMark
DefaultChannelConfig
public SctpServerChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
ChannelConfig复制的描述
设置写入缓冲区的高位标记。 如果写入缓冲区中排队的字节数超过此值,则Channel.isWritable()将开始返回false 。
setWriteBufferHighWaterMark在界面
ChannelConfig
setWriteBufferHighWaterMark在界面
SctpServerChannelConfig
setWriteBufferHighWaterMark在课堂
DefaultChannelConfig
public SctpServerChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
ChannelConfig复制的描述
WriteBufferWaterMark ,用于设置写入缓冲区的高位和低位水印。
setWriteBufferWaterMark在界面
ChannelConfig
setWriteBufferWaterMark在界面
SctpServerChannelConfig
setWriteBufferWaterMark在课堂上
DefaultChannelConfig
public SctpServerChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator)
ChannelConfig
MessageSizeEstimator以检测消息的大小。
setMessageSizeEstimator ,界面
ChannelConfig
setMessageSizeEstimator ,界面
SctpServerChannelConfig
setMessageSizeEstimator ,等级
DefaultChannelConfig
Copyright © 2008–2018 The Netty Project. All rights reserved.