@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 <= 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.equals
in class Object
obj
- The object to be compared with this init max streamsInitMaxStreams
instance with the same number of in
and out bound streamsObject.hashCode()
,
HashMap
public int hashCode()
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
Copyright © 2009, 2016, Oracle and/or its affiliates. All rights reserved.