Package io.github.mahmoudimus.http3
Record Class Http3Frame.GoAway
java.lang.Object
java.lang.Record
io.github.mahmoudimus.http3.Http3Frame.GoAway
- Record Components:
id- the stream or push id
- All Implemented Interfaces:
Http3Frame
- Enclosing interface:
Http3Frame
GOAWAY (§7.2.6), on the control stream.
id is a client-initiated bidirectional stream
ID when the server sends it, and a push ID when the client does.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.mahmoudimus.http3.Http3Frame
Http3Frame.CancelPush, Http3Frame.Data, Http3Frame.GoAway, Http3Frame.Headers, Http3Frame.MaxPushId, Http3Frame.PushPromise, Http3Frame.Settings, Http3Frame.Unknown -
Constructor Summary
Constructors -
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.longid()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.longtype()The frame type code: one of theHttp3FrameTypeconstants, or any other forHttp3Frame.Unknown.
-
Constructor Details
-
GoAway
public GoAway(long id) Creates GOAWAY.- Parameters:
id- the stream or push id, 0 to 2^62-1
-
-
Method Details
-
type
public long type()Description copied from interface:Http3FrameThe frame type code: one of theHttp3FrameTypeconstants, or any other forHttp3Frame.Unknown.- Specified by:
typein interfaceHttp3Frame- Returns:
- the type code
-
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 '=='. -
id
public long id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-