Class TransportParameters.Ids
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TransportParameters.Id
<Long> The initial session max data.static final TransportParameters.Id
<Long> The initial local bidirectional stream max data.static final TransportParameters.Id
<Long> The initial remote bidirectional stream max data.static final TransportParameters.Id
<Long> The initial unidirectional stream max data.static final TransportParameters.Id
<Long> The initial bidirectional max streams.static final TransportParameters.Id
<Long> The initial unidirectional max streams.static final TransportParameters.Id
<Long> The session max idle timeout in milliseconds. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <R> TransportParameters.Id
<R> create
(long id, LongFunction<TransportParameters.Id<R>> creator) Creates a newTransportParameters.Id
with the given id and type.static <R> TransportParameters.Id
<R> get
(long id) Returns aTransportParameters.Id
with the given id.static boolean
isGrease
(long id) Returns whether a transport parameter ID is a grease one, as defined by RFC 9000, section 18.1 .static long
-
Field Details
-
MAX_IDLE_TIMEOUT
The session max idle timeout in milliseconds.
-
INITIAL_MAX_DATA
The initial session max data.
A local peer sends this parameter to inform the remote peer about the max data the local peer is willing to receive on the session.
-
INITIAL_MAX_STREAM_DATA_BIDIRECTIONAL_LOCAL
The initial local bidirectional stream max data.
A local peer sends this parameter to inform the remote peer about the max data the local peer is willing to receive on local bidirectional streams.
-
INITIAL_MAX_STREAM_DATA_BIDIRECTIONAL_REMOTE
The initial remote bidirectional stream max data.
A local peer sends this parameter to inform the remote peer about the max data the local peer is willing to receive on remote bidirectional streams.
-
INITIAL_MAX_STREAM_DATA_UNIDIRECTIONAL
The initial unidirectional stream max data.
A local peer sends this parameter to inform the remote peer about the max data the local peer is willing to receive on unidirectional streams.
-
INITIAL_MAX_STREAMS_BIDIRECTIONAL
The initial bidirectional max streams.
A local peer sends this parameter to inform the remote peer about the max number of streams the local peer is willing to receive.
-
INITIAL_MAX_STREAMS_UNIDIRECTIONAL
The initial unidirectional max streams.
A local peer sends this parameter to inform the remote peer about the max number of streams the local peer is willing to receive.
-
-
Constructor Details
-
Ids
public Ids()
-
-
Method Details
-
create
public static <R> TransportParameters.Id<R> create(long id, LongFunction<TransportParameters.Id<R>> creator) Creates a new
TransportParameters.Id
with the given id and type.- Type Parameters:
R
- the type of theTransportParameters.Id
- Parameters:
id
- the transport parameter IDcreator
- the function that creates the specificTransportParameters.Id
- Returns:
- a new
TransportParameters.Id
- See Also:
-
get
Returns a
TransportParameters.Id
with the given id.- Type Parameters:
R
- the type of theTransportParameters.Id
- Parameters:
id
- the transport parameter ID- Returns:
- the
TransportParameters.Id
with the given id, ornull
-
newGrease
public static long newGrease()- Returns:
- a new grease transport parameter ID
- See Also:
-
isGrease
public static boolean isGrease(long id) Returns whether a transport parameter ID is a grease one, as defined by RFC 9000, section 18.1 .
- Parameters:
id
- the transport parameter ID to test- Returns:
- whether the given transport parameter ID is a grease one
- See Also:
-