java.lang.Object
java.lang.Record
io.helidon.http.http2.Http2Priority
- Record Components:
exclusive
- exclusivestreamId
- stream ID this priority is forweight
- weigth of this stream
- All Implemented Interfaces:
Http2Frame<Http2Flag.NoFlags>
public record Http2Priority(boolean exclusive, int streamId, int weight)
extends Record
implements Http2Frame<Http2Flag.NoFlags>
HTTP/2 priority frame.
-
Constructor Summary
ConstructorDescriptionHttp2Priority
(boolean exclusive, int streamId, int weight) Creates an instance of aHttp2Priority
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Http2Priority
create
(BufferData frame) Create priority frame from frame data.final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of theexclusive
record component.Frame type enum.Frame types.final int
hashCode()
Returns a hash code value for this object.name()
Frame name.int
streamId()
Returns the value of thestreamId
record component.toFrameData
(Http2Settings settings, int forStreamId, Http2Flag.NoFlags flags) Not implemented in headers, data, as these may use continuations.final String
toString()
Returns a string representation of this record class.int
weight()
Returns the value of theweight
record component.
-
Constructor Details
-
Http2Priority
public Http2Priority(boolean exclusive, int streamId, int weight) Creates an instance of aHttp2Priority
record class.
-
-
Method Details
-
create
Create priority frame from frame data.- Parameters:
frame
- frame data- Returns:
- priority frame
-
toFrameData
Description copied from interface:Http2Frame
Not implemented in headers, data, as these may use continuations.- Specified by:
toFrameData
in interfaceHttp2Frame<Http2Flag.NoFlags>
- Parameters:
settings
- settingsforStreamId
- stream id of this frameflags
- to use- Returns:
- frame data
-
name
Description copied from interface:Http2Frame
Frame name.- Specified by:
name
in interfaceHttp2Frame<Http2Flag.NoFlags>
- Returns:
- frame type name
-
frameType
Description copied from interface:Http2Frame
Frame type enum.- Specified by:
frameType
in interfaceHttp2Frame<Http2Flag.NoFlags>
- Returns:
- type of this frame
-
frameTypes
Description copied from interface:Http2Frame
Frame types.- Specified by:
frameTypes
in interfaceHttp2Frame<Http2Flag.NoFlags>
- Returns:
- frame types
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='. -
exclusive
public boolean exclusive()Returns the value of theexclusive
record component.- Returns:
- the value of the
exclusive
record component
-
streamId
public int streamId()Returns the value of thestreamId
record component.- Returns:
- the value of the
streamId
record component
-
weight
public int weight()Returns the value of theweight
record component.- Returns:
- the value of the
weight
record component
-