APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.internal.net.http.quic.frames

public final Class NewConnectionIDFrame

extends QuicFrame
Class Inheritance
Imports
jdk.internal.net.quic.QuicTransportErrors, .QuicTransportException, java.nio.BufferOverflowException, .ByteBuffer

A NEW_CONNECTION_ID Frame
External Specification
https://www.rfc-editor.org/info/rfc9000

Field Summary

Modifier and TypeField and Description
private final ByteBuffer
private final long
private final long
private final ByteBuffer
Inherited from jdk.internal.net.http.quic.frames.QuicFrame:
ACKCONNECTION_CLOSECRYPTODATA_BLOCKEDHANDSHAKE_DONEMAX_DATAMAX_STREAM_DATAMAX_STREAMSMAX_VL_INTEGERNEW_CONNECTION_IDNEW_TOKENPADDINGPATH_CHALLENGEPATH_RESPONSEPINGRESET_STREAMRETIRE_CONNECTION_IDSTOP_SENDINGSTREAMSTREAM_DATA_BLOCKEDSTREAMS_BLOCKED

Constructor Summary

AccessConstructor and Description
pack-priv
NewConnectionIDFrame(ByteBuffer buffer, int type)

Incoming NEW_CONNECTION_ID frame returned by QuicFrame.decode()

public
NewConnectionIDFrame(long sequenceNumber, long retirePriorTo, ByteBuffer connectionId, ByteBuffer statelessResetToken)

Outgoing NEW_CONNECTION_ID frame

Method Summary

Modifier and TypeMethod and Description
public ByteBuffer
public void
encode(ByteBuffer buffer)

Implements abstract jdk.internal.net.http.quic.frames.QuicFrame.encode.

Encode this QUIC Frame into given ByteBuffer

public long
public long
public int
size()

Implements abstract jdk.internal.net.http.quic.frames.QuicFrame.size.

Returns the minimum number of bytes needed to encode this frame.

public ByteBuffer
public String
toString()

Overrides jdk.internal.net.http.quic.frames.QuicFrame.toString.

Returns a string representation of the object.

Inherited from jdk.internal.net.http.quic.frames.QuicFrame:
decodedecodeVLFielddecodeVLFieldAsIntencodeVLFieldframeClassOfframeTypeframeTypeOfgetTypeFieldgetVLFieldLengthForisAckElicitingisValidInputByteBufferrequireVLRangerequireVLRangevalidateRemainingLength

Field Detail

connectionIdback to summary
private final ByteBuffer connectionId
retirePriorToback to summary
private final long retirePriorTo
sequenceNumberback to summary
private final long sequenceNumber
statelessResetTokenback to summary
private final ByteBuffer statelessResetToken

Constructor Detail

NewConnectionIDFrameback to summary
pack-priv NewConnectionIDFrame(ByteBuffer buffer, int type) throws QuicTransportException

Incoming NEW_CONNECTION_ID frame returned by QuicFrame.decode()

Exceptions
QuicTransportException:
if the frame was malformed
NewConnectionIDFrameback to summary
public NewConnectionIDFrame(long sequenceNumber, long retirePriorTo, ByteBuffer connectionId, ByteBuffer statelessResetToken)

Outgoing NEW_CONNECTION_ID frame

Method Detail

connectionIdback to summary
public ByteBuffer connectionId()
encodeback to summary
public void encode(ByteBuffer buffer)

Implements abstract jdk.internal.net.http.quic.frames.QuicFrame.encode.

Doc from jdk.internal.net.http.quic.frames.QuicFrame.encode.

Encode this QUIC Frame into given ByteBuffer

Annotations
@Override
retirePriorToback to summary
public long retirePriorTo()
sequenceNumberback to summary
public long sequenceNumber()
sizeback to summary
public int size()

Implements abstract jdk.internal.net.http.quic.frames.QuicFrame.size.

Doc from jdk.internal.net.http.quic.frames.QuicFrame.size.

Returns the minimum number of bytes needed to encode this frame.

Annotations
@Override
statelessResetTokenback to summary
public ByteBuffer statelessResetToken()
toStringback to summary
public String toString()

Overrides jdk.internal.net.http.quic.frames.QuicFrame.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override