SctpStandardSocketOptions
public static class SctpStandardSocketOptions.InitMaxStreams extends Object
SCTP_INIT_MAXSTREAMS
socket option.Modifier and Type | Method | Description |
---|---|---|
static SctpStandardSocketOptions.InitMaxStreams |
create |
Creates an InitMaxStreams instance. |
boolean |
equals |
Returns true if the specified object is another InitMaxStreams instance with the same number of in and out bound streams. |
int |
hashCode() |
Returns a hash code value for this init max streams. |
int |
maxInStreams() |
Returns the maximum number of inbound streams. |
int |
maxOutStreams() |
Returns the maximum number of outbound streams. |
String |
toString() |
Returns a string representation of this init max streams, including the maximum in and out bound streams. |
public static SctpStandardSocketOptions.InitMaxStreams create(int maxInStreams, int maxOutStreams)
maxInStreams
- The maximum number of inbound streams, where 0 <= maxInStreams <= 65536
maxOutStreams
- The maximum number of outbound streams, where 0 <= maxOutStreams <= 65536
InitMaxStreams
instanceIllegalArgumentException
- If an argument is outside of specified boundspublic int maxInStreams()
public int maxOutStreams()
public String toString()
public boolean equals(Object obj)
InitMaxStreams
instance with the same number of in and out bound streams.public int hashCode()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.sctp/com/sun/nio/sctp/SctpStandardSocketOptions.InitMaxStreams.html