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 booleanprivate final intprivate final short -
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttp2PriorityFrame(int streamDependency, short weight, boolean exclusive) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueifohas equalstreamto this object.booleanSet totrueif this stream is exclusive else set tofalseinthashCode()name()Returns the name of the HTTP/2 frame e.g.stream(Http2FrameStream stream) Set theHttp2FrameStreamobject for this frame.intParent Stream Id of this Priority requesttoString()shortweight()Stream weightMethods inherited from class io.netty.handler.codec.http2.AbstractHttp2StreamFrame
streamMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:Http2PriorityFrameParent Stream Id of this Priority request- Specified by:
streamDependencyin interfaceHttp2PriorityFrame
-
weight
public short weight()Description copied from interface:Http2PriorityFrameStream weight- Specified by:
weightin interfaceHttp2PriorityFrame
-
exclusive
public boolean exclusive()Description copied from interface:Http2PriorityFrameSet totrueif this stream is exclusive else set tofalse- Specified by:
exclusivein interfaceHttp2PriorityFrame
-
stream
Description copied from interface:Http2StreamFrameSet theHttp2FrameStreamobject for this frame.- Specified by:
streamin interfaceHttp2PriorityFrame- Specified by:
streamin interfaceHttp2StreamFrame- Overrides:
streamin classAbstractHttp2StreamFrame
-
name
Description copied from interface:Http2FrameReturns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
namein interfaceHttp2Frame
-
equals
Description copied from class:AbstractHttp2StreamFrameReturnstrueifohas equalstreamto this object.- Overrides:
equalsin classAbstractHttp2StreamFrame
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractHttp2StreamFrame
-
toString
-