Package io.github.mahmoudimus.http2
Record Class Frame.WindowUpdate
java.lang.Object
java.lang.Record
io.github.mahmoudimus.http2.Frame.WindowUpdate
- Record Components:
streamId- the stream identifier, or 0 for the connectionincrement- the flow-control credit from 1 to 2^31-1
- All Implemented Interfaces:
Frame
- Enclosing interface:
Frame
public static record Frame.WindowUpdate(int streamId, int increment)
extends Record
implements Frame
WINDOW_UPDATE (§6.9) for a stream, or for the connection when
streamId is 0.-
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
ConstructorsConstructorDescriptionWindowUpdate(int streamId, int increment) Creates WINDOW_UPDATE with a positive credit increment. -
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.intReturns the value of theincrementrecord 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
-
WindowUpdate
public WindowUpdate(int streamId, int increment) Creates WINDOW_UPDATE with a positive credit increment.- Parameters:
streamId- the stream identifier, or 0 for the connectionincrement- the flow-control credit from 1 to 2^31-1
-
-
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. All components in this record class are compared with '=='. -
streamId
public int streamId()Returns the value of thestreamIdrecord component. -
increment
public int increment()Returns the value of theincrementrecord component.- Returns:
- the value of the
incrementrecord component
-