java.lang.Object
java.lang.Record
io.helidon.http.http2.Http2GoAway
- Record Components:
- lastStreamId- last stream ID that was correctly processed
- errorCode- error code
- details- 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 SummaryConstructorsConstructorDescriptionHttp2GoAway(int lastStreamId, Http2ErrorCode errorCode, String details) Creates an instance of aHttp2GoAwayrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionstatic Http2GoAwaycreate(BufferData frame) Create a go away frame from frame data.details()Returns the value of thedetailsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorCoderecord component.Frame type enum.Frame types.final inthashCode()Returns a hash code value for this object.intReturns the value of thelastStreamIdrecord component.name()Frame name.toFrameData(Http2Settings settings, int streamId, Http2Flag.NoFlags flags) Not implemented in headers, data, as these may use continuations.final StringtoString()Returns a string representation of this record class.
- 
Constructor Details- 
Http2GoAwayCreates an instance of aHttp2GoAwayrecord class.- Parameters:
- lastStreamId- the value for the- lastStreamIdrecord component
- errorCode- the value for the- errorCoderecord component
- details- the value for the- detailsrecord component
 
 
- 
- 
Method Details- 
createCreate a go away frame from frame data.- Parameters:
- frame- frame data
- Returns:
- go away frame
 
- 
toFrameDataDescription copied from interface:Http2FrameNot implemented in headers, data, as these may use continuations.- Specified by:
- toFrameDatain interface- Http2Frame<Http2Flag.NoFlags>
- Parameters:
- settings- settings
- streamId- stream id of this frame
- flags- to use
- Returns:
- frame data
 
- 
nameDescription copied from interface:Http2FrameFrame name.- Specified by:
- namein interface- Http2Frame<Http2Flag.NoFlags>
- Returns:
- frame type name
 
- 
frameTypeDescription copied from interface:Http2FrameFrame type enum.- Specified by:
- frameTypein interface- Http2Frame<Http2Flag.NoFlags>
- Returns:
- type of this frame
 
- 
frameTypesDescription copied from interface:Http2FrameFrame types.- Specified by:
- frameTypesin interface- Http2Frame<Http2Flag.NoFlags>
- Returns:
- frame types
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
lastStreamIdpublic int lastStreamId()Returns the value of thelastStreamIdrecord component.- Returns:
- the value of the lastStreamIdrecord component
 
- 
errorCodeReturns the value of theerrorCoderecord component.- Returns:
- the value of the errorCoderecord component
 
- 
detailsReturns the value of thedetailsrecord component.- Returns:
- the value of the detailsrecord component
 
 
-