本文整理汇总了Java中com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams类的典型用法代码示例。如果您正苦于以下问题:Java InitMaxStreams类的具体用法?Java InitMaxStreams怎么用?Java InitMaxStreams使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
InitMaxStreams类属于com.sun.nio.sctp.SctpStandardSocketOptions包,在下文中一共展示了InitMaxStreams类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setOption
import com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams; //导入依赖的package包/类
@Override
public <T> boolean setOption(ChannelOption<T> option, T value) {
validate(option, value);
if (option == ChannelOption.SO_RCVBUF) {
setReceiveBufferSize((Integer) value);
} else if (option == ChannelOption.SO_SNDBUF) {
setSendBufferSize((Integer) value);
} else if (option == SctpChannelOption.SCTP_INIT_MAXSTREAMS) {
setInitMaxStreams((InitMaxStreams) value);
} else {
return super.setOption(option, value);
}
return true;
}
示例2: getInitMaxStreams
import com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams; //导入依赖的package包/类
@Override
public InitMaxStreams getInitMaxStreams() {
try {
return javaChannel.getOption(SctpStandardSocketOptions.SCTP_INIT_MAXSTREAMS);
} catch (IOException e) {
throw new ChannelException(e);
}
}
示例3: setInitMaxStreams
import com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams; //导入依赖的package包/类
@Override
public SctpServerChannelConfig setInitMaxStreams(InitMaxStreams initMaxStreams) {
try {
javaChannel.setOption(SctpStandardSocketOptions.SCTP_INIT_MAXSTREAMS, initMaxStreams);
} catch (IOException e) {
throw new ChannelException(e);
}
return this;
}
示例4: getInitMaxStreams
import com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams; //导入依赖的package包/类
/**
* Gets the <a href="http://openjdk.java.net/projects/sctp/javadoc/com/sun/nio/sctp/SctpStandardSocketOption.html">
* {@code SCTP_INIT_MAXSTREAMS}</a> option.
*/
InitMaxStreams getInitMaxStreams();
示例5: setInitMaxStreams
import com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams; //导入依赖的package包/类
/**
* Gets the <a href="http://openjdk.java.net/projects/sctp/javadoc/com/sun/nio/sctp/SctpStandardSocketOption.html">
* {@code SCTP_INIT_MAXSTREAMS}</a> option.
*/
SctpChannelConfig setInitMaxStreams(InitMaxStreams initMaxStreams);
示例6: setInitMaxStreams
import com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams; //导入依赖的package包/类
/**
* Gets the <a href="http://openjdk.java.net/projects/sctp/javadoc/com/sun/nio/sctp/SctpStandardSocketOption.html">
* {@code SCTP_INIT_MAXSTREAMS}</a> option.
*/
SctpServerChannelConfig setInitMaxStreams(InitMaxStreams initMaxStreams);