Package io.github.mahmoudimus.http2
Record Class Frame.Priority
java.lang.Object
java.lang.Record
io.github.mahmoudimus.http2.Frame.Priority
- Record Components:
streamId- the nonzero stream identifierspec- the deprecated priority signal
- All Implemented Interfaces:
Frame
- Enclosing interface:
Frame
public static record Frame.Priority(int streamId, Frame.PrioritySpec spec)
extends Record
implements Frame
PRIORITY (§6.3): parsed and otherwise ignored.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.mahmoudimus.http2.Frame
Frame.Continuation, Frame.Data, Frame.GoAway, Frame.Headers, Frame.Ping, Frame.Priority, Frame.PrioritySpec, Frame.PushPromise, Frame.RstStream, Frame.Settings, Frame.Unknown, Frame.WindowUpdate -
Field Summary
Fields inherited from interface io.github.mahmoudimus.http2.Frame
MAX_STREAM_ID -
Constructor Summary
ConstructorsConstructorDescriptionPriority(int streamId, Frame.PrioritySpec spec) Creates PRIORITY with a nonzero stream and a priority signal. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.spec()Returns the value of thespecrecord component.intstreamId()Returns the value of thestreamIdrecord component.final StringtoString()Returns a string representation of this record class.inttype()The frame type code, one of theFrameTypeconstants (or any value forFrame.Unknown).
-
Constructor Details
-
Priority
Creates PRIORITY with a nonzero stream and a priority signal.- Parameters:
streamId- the nonzero stream identifierspec- the deprecated priority signal
-
-
Method Details
-
type
public int type()Description copied from interface:FrameThe frame type code, one of theFrameTypeconstants (or any value forFrame.Unknown). -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
streamId
public int streamId()Returns the value of thestreamIdrecord component. -
spec
Returns the value of thespecrecord component.- Returns:
- the value of the
specrecord component
-