Record Class Http2Priority

java.lang.Object
java.lang.Record
io.helidon.http.http2.Http2Priority
Record Components:
exclusive - exclusive
streamId - stream ID this priority is for
weight - 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 Details

    • Http2Priority

      public Http2Priority(boolean exclusive, int streamId, int weight)
      Creates an instance of a Http2Priority record class.
      Parameters:
      exclusive - the value for the exclusive record component
      streamId - the value for the streamId record component
      weight - the value for the weight record component
  • Method Details

    • create

      public static Http2Priority create(BufferData frame)
      Create priority frame from frame data.
      Parameters:
      frame - frame data
      Returns:
      priority frame
    • toFrameData

      public Http2FrameData toFrameData(Http2Settings settings, int forStreamId, Http2Flag.NoFlags flags)
      Description copied from interface: Http2Frame
      Not implemented in headers, data, as these may use continuations.
      Specified by:
      toFrameData in interface Http2Frame<Http2Flag.NoFlags>
      Parameters:
      settings - settings
      forStreamId - stream id of this frame
      flags - to use
      Returns:
      frame data
    • name

      public String name()
      Description copied from interface: Http2Frame
      Frame name.
      Specified by:
      name in interface Http2Frame<Http2Flag.NoFlags>
      Returns:
      frame type name
    • frameType

      public Http2FrameType frameType()
      Description copied from interface: Http2Frame
      Frame type enum.
      Specified by:
      frameType in interface Http2Frame<Http2Flag.NoFlags>
      Returns:
      type of this frame
    • frameTypes

      public Http2FrameTypes<Http2Flag.NoFlags> frameTypes()
      Description copied from interface: Http2Frame
      Frame types.
      Specified by:
      frameTypes in interface Http2Frame<Http2Flag.NoFlags>
      Returns:
      frame types
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • exclusive

      public boolean exclusive()
      Returns the value of the exclusive record component.
      Returns:
      the value of the exclusive record component
    • streamId

      public int streamId()
      Returns the value of the streamId record component.
      Returns:
      the value of the streamId record component
    • weight

      public int weight()
      Returns the value of the weight record component.
      Returns:
      the value of the weight record component