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

public final Class StreamsBlockedFrame

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

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

Field Summary

Modifier and TypeField and Description
private final boolean
private final long
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
StreamsBlockedFrame(ByteBuffer buffer, int type)

Incoming STREAMS_BLOCKED frame returned by QuicFrame.decode()

public
StreamsBlockedFrame(boolean bidi, long maxStreams)

Outgoing STREAMS_BLOCKED frame

Method Summary

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

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

Encode this QUIC Frame into given ByteBuffer

public long
getTypeField()

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

Returns the type field that was / should be encoded.

public boolean
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 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:
decodedecodeVLFielddecodeVLFieldAsIntencodeVLFieldframeClassOfframeTypeframeTypeOfgetVLFieldLengthForisAckElicitingisValidInputByteBufferrequireVLRangerequireVLRangevalidateRemainingLength

Field Detail

bidiback to summary
private final boolean bidi
maxStreamsback to summary
private final long maxStreams

Constructor Detail

StreamsBlockedFrameback to summary
pack-priv StreamsBlockedFrame(ByteBuffer buffer, int type) throws QuicTransportException

Incoming STREAMS_BLOCKED frame returned by QuicFrame.decode()

Exceptions
QuicTransportException:
if the frame was malformed
StreamsBlockedFrameback to summary
public StreamsBlockedFrame(boolean bidi, long maxStreams)

Outgoing STREAMS_BLOCKED frame

Method Detail

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
getTypeFieldback to summary
public long getTypeField()

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

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

Returns the type field that was / should be encoded. This is the frame type with possibly some additional bits set, depending on the frame.

Annotations
@Override
isBidiback to summary
public boolean isBidi()
maxStreamsback to summary
public long maxStreams()
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
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