- java.lang.Object
-
- io.netty5.handler.codec.http2.AbstractHttp2StreamFrame
-
- io.netty5.handler.codec.http2.DefaultHttp2PriorityFrame
-
- All Implemented Interfaces:
Http2Frame
,Http2PriorityFrame
,Http2StreamFrame
@UnstableApi public final class DefaultHttp2PriorityFrame extends AbstractHttp2StreamFrame implements Http2PriorityFrame
Default implementation of Http2PriorityFrame
-
-
Constructor Summary
Constructors Constructor Description DefaultHttp2PriorityFrame(int streamDependency, short weight, boolean exclusive)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Returnstrue
ifo
has equalstream
to this object.boolean
exclusive()
Set totrue
if this stream is exclusive else set tofalse
int
hashCode()
String
name()
Returns the name of the HTTP/2 frame e.g.DefaultHttp2PriorityFrame
stream(Http2FrameStream stream)
Set theHttp2FrameStream
object for this frame.int
streamDependency()
Parent Stream Id of this Priority requestString
toString()
short
weight()
Stream weight-
Methods inherited from class io.netty5.handler.codec.http2.AbstractHttp2StreamFrame
stream
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.netty5.handler.codec.http2.Http2StreamFrame
stream
-
-
-
-
Method Detail
-
streamDependency
public int streamDependency()
Description copied from interface:Http2PriorityFrame
Parent Stream Id of this Priority request- Specified by:
streamDependency
in interfaceHttp2PriorityFrame
-
weight
public short weight()
Description copied from interface:Http2PriorityFrame
Stream weight- Specified by:
weight
in interfaceHttp2PriorityFrame
-
exclusive
public boolean exclusive()
Description copied from interface:Http2PriorityFrame
Set totrue
if this stream is exclusive else set tofalse
- Specified by:
exclusive
in interfaceHttp2PriorityFrame
-
stream
public DefaultHttp2PriorityFrame stream(Http2FrameStream stream)
Description copied from interface:Http2StreamFrame
Set theHttp2FrameStream
object for this frame.- Specified by:
stream
in interfaceHttp2PriorityFrame
- Specified by:
stream
in interfaceHttp2StreamFrame
- Overrides:
stream
in classAbstractHttp2StreamFrame
-
name
public String name()
Description copied from interface:Http2Frame
Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
name
in interfaceHttp2Frame
-
equals
public boolean equals(Object o)
Description copied from class:AbstractHttp2StreamFrame
Returnstrue
ifo
has equalstream
to this object.- Overrides:
equals
in classAbstractHttp2StreamFrame
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractHttp2StreamFrame
-
-