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
-
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 AbstractHttp2StreamFrame
streamModifier and TypeMethodDescriptionstream()Returns theHttp2FrameStreamobject for this frame, ornullif the frame has yet to be associated with a stream.
-
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
-