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

public final Class GoAwayFrame

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 GOAWAY 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
GoAwayFrame(final long id)

private
GoAwayFrame(final long length, final long id)

Method Summary

Modifier and TypeMethod and Description
pack-priv static AbstractHttp3Frame
decodeFrame(final BuffersReader reader, final Logger debug)

public long

Returns:

the id of either the stream or a push promise, depending on the context of this frame
getTargetId
()

Returns the id of either the stream or a push promise, depending on the context of this frame.

public long
length()

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

Returns the length of this frame.

public String
toString()

Overrides jdk.internal.net.http.http3.frames.AbstractHttp3Frame.toString.

Returns a string representation of the object.

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

Field Detail

idback to summary
private final long id
lengthback to summary
private final long length
TYPEback to summary
public static final int TYPE

Constructor Detail

GoAwayFrameback to summary
public GoAwayFrame(final long id)
GoAwayFrameback to summary
private GoAwayFrame(final long length, final long id)

Method Detail

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

Returns the id of either the stream or a push promise, depending on the context of this frame.

Returns:long

the id of either the stream or a push promise, depending on the context of this frame

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
toStringback to summary
public String toString()

Overrides jdk.internal.net.http.http3.frames.AbstractHttp3Frame.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
writeFrameback to summary
public void writeFrame(final ByteBuffer buf)