Top Description Fields Constructors Methods
io.netty5.handler.codec.http2

public final Class DefaultHttp2PriorityFrame

extends AbstractHttp2StreamFrame
implements Http2PriorityFrame
Class Inheritance
All Implemented Interfaces
io.netty5.handler.codec.http2.Http2PriorityFrame, io.netty5.handler.codec.http2.Http2StreamFrame, io.netty5.handler.codec.http2.Http2Frame
Annotations
@UnstableApi
Imports
io.netty5.util.internal.UnstableApi

Default implementation of Http2PriorityFrame

Field Summary

Modifier and TypeField and Description
private final boolean
private final int
private final short

Constructor Summary

AccessConstructor and Description
public
DefaultHttp2PriorityFrame(int streamDependency, short weight, boolean exclusive)

Method Summary

Modifier and TypeMethod and Description
public boolean
equals(Object
the reference object with which to compare.
o
)

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.equals.

Returns true if o has equal stream to this object.
public boolean
exclusive()

Implements io.netty5.handler.codec.http2.Http2PriorityFrame.exclusive.

Set to true if this stream is exclusive else set to false
public int
hashCode()

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.hashCode.

Returns a hash code value for the object.
public String
name()

Implements io.netty5.handler.codec.http2.Http2Frame.name.

Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.
public DefaultHttp2PriorityFrame
public int
streamDependency()

Implements io.netty5.handler.codec.http2.Http2PriorityFrame.streamDependency.

Parent Stream Id of this Priority request
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
public short
Inherited from io.netty5.handler.codec.http2.AbstractHttp2StreamFrame:
stream

Field Detail

exclusiveback to summary
private final boolean exclusive
streamDependencyback to summary
private final int streamDependency
weightback to summary
private final short weight

Constructor Detail

DefaultHttp2PriorityFrameback to summary
public DefaultHttp2PriorityFrame(int streamDependency, short weight, boolean exclusive)

Method Detail

equalsback to summary
public boolean equals(Object o)

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.equals.

Doc from io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.equals.

Returns true if o has equal stream to this object.

Parameters
o:Object

Doc from java.lang.Object.equals.

the reference object with which to compare.

Returns:boolean

Doc from java.lang.Object.equals.

true if this object is the same as the obj argument; false otherwise.

Annotations
@Override
exclusiveback to summary
public boolean exclusive()

Implements io.netty5.handler.codec.http2.Http2PriorityFrame.exclusive.

Doc from io.netty5.handler.codec.http2.Http2PriorityFrame.exclusive.

Set to true if this stream is exclusive else set to false

Annotations
@Override
hashCodeback to summary
public int hashCode()

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.hashCode.

Doc from java.lang.Object.hashCode.

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.

The general contract of hashCode is:

  • Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
  • If two objects are equal according to the equals method, then calling the hashCode method on each of the two objects must produce the same integer result.
  • It is not required that if two objects are unequal according to the equals method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
Returns:int

a hash code value for this object.

Annotations
@Override
nameback to summary
public String name()

Implements io.netty5.handler.codec.http2.Http2Frame.name.

Doc from io.netty5.handler.codec.http2.Http2Frame.name.

Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.

Annotations
@Override
streamback to summary
public DefaultHttp2PriorityFrame stream(Http2FrameStream stream)

Overrides io.netty5.handler.codec.http2.AbstractHttp2StreamFrame.stream.

Implements io.netty5.handler.codec.http2.Http2PriorityFrame.stream, io.netty5.handler.codec.http2.Http2StreamFrame.stream.

Doc from io.netty5.handler.codec.http2.Http2StreamFrame.stream.

Set the Http2FrameStream object for this frame.

Annotations
@Override
streamDependencyback to summary
public int streamDependency()

Implements io.netty5.handler.codec.http2.Http2PriorityFrame.streamDependency.

Doc from io.netty5.handler.codec.http2.Http2PriorityFrame.streamDependency.

Parent Stream Id of this Priority request

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
weightback to summary
public short weight()

Implements io.netty5.handler.codec.http2.Http2PriorityFrame.weight.

Doc from io.netty5.handler.codec.http2.Http2PriorityFrame.weight.

Stream weight

Annotations
@Override