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

public final Class MaxPushIdFrame

extends AbstractHttp3Frame
Class Inheritance
Imports
java.nio.BufferUnderflowException, .ByteBuffer, jdk.internal.net.http.common.Logger, jdk.internal.net.http.http3.Http3Error, jdk.internal.net.http.quic.BuffersReader, .VariableLengthEncoder

Represents a MAX_PUSH_ID HTTP3 frame

Field Summary

Modifier and TypeField and Description
private final long
private final long
public static final int
Inherited from jdk.internal.net.http.http3.frames.AbstractHttp3Frame:
RANDOMtype

Constructor Summary

AccessConstructor and Description
public
MaxPushIdFrame(final long maxPushId)

private
MaxPushIdFrame(final long maxPushId, final long length)

Method Summary

Modifier and TypeMethod and Description
pack-priv static AbstractHttp3Frame

Returns:

the new frame
decodeFrame
(final BuffersReader
the reader
reader
,
final Logger
a logger for debugging purposes
debug
)

This method is expected to be called when the reader contains enough bytes to decode the frame.

public long
public long
length()

Implements jdk.internal.net.http.http3.frames.Http3Frame.length.

Returns the length of this frame.

public void
Inherited from jdk.internal.net.http.http3.frames.AbstractHttp3Frame:
checkPayloadSizedecodeRequiredTypeheadersSizesizestreamingLengthtoStringtypetypeAsString

Field Detail

lengthback to summary
private final long length
maxPushIdback to summary
private final long maxPushId
TYPEback to summary
public static final int TYPE

Constructor Detail

MaxPushIdFrameback to summary
public MaxPushIdFrame(final long maxPushId)
MaxPushIdFrameback to summary
private MaxPushIdFrame(final long maxPushId, final long length)

Method Detail

decodeFrameback to summary
pack-priv static AbstractHttp3Frame decodeFrame(final BuffersReader reader, final Logger debug)

This method is expected to be called when the reader contains enough bytes to decode the frame.

Parameters
reader:BuffersReader

the reader

debug:Logger

a logger for debugging purposes

Returns:AbstractHttp3Frame

the new frame

Exceptions
BufferUnderflowException:
if the reader doesn't contain enough bytes to decode the frame
getMaxPushIdback to summary
public long getMaxPushId()
lengthback to summary
public long length()

Implements jdk.internal.net.http.http3.frames.Http3Frame.length.

Doc from jdk.internal.net.http.http3.frames.Http3Frame.length.

Returns the length of this frame.

Annotations
@Override
writeFrameback to summary
public void writeFrame(final ByteBuffer buf)