@Exported public static class SctpStandardSocketOptions.InitMaxStreams extends Object
SCTP_INIT_MAXSTREAMS
socket option.| Modifier and Type | Method and Description |
|---|---|
static SctpStandardSocketOptions.InitMaxStreams |
create(int maxInStreams,
int maxOutStreams)
Creates an InitMaxStreams instance.
|
boolean |
equals(Object obj)
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 <= 65536maxOutStreams - The maximum number of outbound streams, where
0 <= maxOutStreams <= 65536InitMaxStreams 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.equals in class Objectobj - The object to be compared with this init max streamsInitMaxStreams instance with the same number of in
and out bound streamsObject.hashCode(),
HashMappublic int hashCode()
hashCode in class ObjectObject.equals(java.lang.Object),
System.identityHashCode(java.lang.Object)
Copyright © 2009, 2020, Oracle and/or its affiliates. All rights reserved.