Package io.undertow.protocols.http2
Class Http2PriorityTree
- java.lang.Object
-
- io.undertow.protocols.http2.Http2PriorityTree
-
public class Http2PriorityTree extends Object
A structure that represents HTTP2 priority information. Note that this structure is not thread safe, it is intended to be protected by an external lock- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description Http2PriorityTree()
The maximum number of streams that we store priority information for
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Comparator<Integer>
comparator()
Creates a priority queuevoid
priorityFrame(int streamId, int streamDependency, int weight, boolean exlusive)
void
registerStream(int streamId, int dependency, int weighting, boolean exclusive)
Resisters a stream, with its dependency and dependent informationvoid
streamRemoved(int streamId)
Method that is invoked when a stream has been removed
-
-
-
Method Detail
-
registerStream
public void registerStream(int streamId, int dependency, int weighting, boolean exclusive)
Resisters a stream, with its dependency and dependent information- Parameters:
streamId
- The stream iddependency
- The stream this stream depends on, if no stream is specified this should be zeroweighting
- The weighting. If no weighting is specified this should be 16
-
streamRemoved
public void streamRemoved(int streamId)
Method that is invoked when a stream has been removed- Parameters:
streamId
- id of the stream removed
-
comparator
public Comparator<Integer> comparator()
Creates a priority queue- Returns:
-
priorityFrame
public void priorityFrame(int streamId, int streamDependency, int weight, boolean exlusive)
-
-