Package io.netty.handler.codec.http2
Class DefaultHttp2PriorityFrame
java.lang.Object
io.netty.handler.codec.http2.AbstractHttp2StreamFrame
io.netty.handler.codec.http2.DefaultHttp2PriorityFrame
- All Implemented Interfaces:
Http2Frame
,Http2PriorityFrame
,Http2StreamFrame
public final class DefaultHttp2PriorityFrame
extends AbstractHttp2StreamFrame
implements Http2PriorityFrame
Default implementation of Http2PriorityFrame
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final int
private final short
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttp2PriorityFrame
(int streamDependency, short weight, boolean exclusive) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
ifo
has equalstream
to this object.boolean
Set totrue
if this stream is exclusive else set tofalse
int
hashCode()
name()
Returns the name of the HTTP/2 frame e.g.stream
(Http2FrameStream stream) Set theHttp2FrameStream
object for this frame.int
Parent Stream Id of this Priority requesttoString()
short
weight()
Stream weightMethods inherited from class io.netty.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.netty.handler.codec.http2.Http2StreamFrame
stream
-
Field Details
-
streamDependency
private final int streamDependency -
weight
private final short weight -
exclusive
private final boolean exclusive
-
-
Constructor Details
-
DefaultHttp2PriorityFrame
public DefaultHttp2PriorityFrame(int streamDependency, short weight, boolean exclusive)
-
-
Method Details
-
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
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
Description copied from interface:Http2Frame
Returns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
name
in interfaceHttp2Frame
-
equals
Description copied from class:AbstractHttp2StreamFrame
Returnstrue
ifo
has equalstream
to this object.- Overrides:
equals
in classAbstractHttp2StreamFrame
-
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractHttp2StreamFrame
-
toString
-