java.lang.Object
java.lang.Record
io.helidon.http.http2.Http2GoAway
- Record Components:
lastStreamId
- last stream ID that was correctly processederrorCode
- error codedetails
- details message
- All Implemented Interfaces:
Http2Frame<Http2Flag.NoFlags>
public record Http2GoAway(int lastStreamId, Http2ErrorCode errorCode, String details)
extends Record
implements Http2Frame<Http2Flag.NoFlags>
Go away frame.
-
Constructor Summary
ConstructorDescriptionHttp2GoAway
(int lastStreamId, Http2ErrorCode errorCode, String details) Creates an instance of aHttp2GoAway
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Http2GoAway
create
(BufferData frame) Create a go away frame from frame data.details()
Returns the value of thedetails
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorCode
record component.Frame type enum.Frame types.final int
hashCode()
Returns a hash code value for this object.int
Returns the value of thelastStreamId
record component.name()
Frame name.toFrameData
(Http2Settings settings, int streamId, Http2Flag.NoFlags flags) Not implemented in headers, data, as these may use continuations.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
Http2GoAway
Creates an instance of aHttp2GoAway
record class.- Parameters:
lastStreamId
- the value for thelastStreamId
record componenterrorCode
- the value for theerrorCode
record componentdetails
- the value for thedetails
record component
-
-
Method Details
-
create
Create a go away frame from frame data.- Parameters:
frame
- frame data- Returns:
- go away 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
- settingsstreamId
- 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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
lastStreamId
public int lastStreamId()Returns the value of thelastStreamId
record component.- Returns:
- the value of the
lastStreamId
record component
-
errorCode
Returns the value of theerrorCode
record component.- Returns:
- the value of the
errorCode
record component
-
details
Returns the value of thedetails
record component.- Returns:
- the value of the
details
record component
-