| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int[] | evictionQueue
fixed length queue of completed streams that have no dependents, they are kept around for a short time then expired. |
| private int | |
| private final Map | |
| private final Http2PriorityTree. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Comparator | |
| private double | |
| public void | |
| public void | registerStream(int
The stream id streamId, int The stream this stream depends on, if no stream is specified this should be zero dependency, int The weighting. If no weighting is specified this should be 16 weighting, boolean exclusive)Resisters a stream, with its dependency and dependent information |
| public void | streamRemoved(int
id of the stream removed streamId)Method that is invoked when a stream has been removed |
| evictionQueue | back to summary |
|---|---|
| private int[] evictionQueue fixed length queue of completed streams that have no dependents, they are kept around for a short time then expired. | |
| evictionQueuePosition | back to summary |
|---|---|
| private int evictionQueuePosition | |
| nodesByID | back to summary |
|---|---|
| private final Map<Integer, Http2PriorityTree. | |
| rootNode | back to summary |
|---|---|
| private final Http2PriorityTree. | |
| Http2PriorityTree | back to summary |
|---|---|
| public Http2PriorityTree() The maximum number of streams that we store priority information for | |
| comparator | back to summary |
|---|---|
| public Comparator Creates a priority queue | |
| createWeightingProportion | back to summary |
|---|---|
| private double createWeightingProportion(Http2PriorityTree. | |
| priorityFrame | back to summary |
|---|---|
| public void priorityFrame(int streamId, int streamDependency, int weight, boolean exlusive) | |
| registerStream | back to summary |
|---|---|
| public void registerStream(int streamId, int dependency, int weighting, boolean exclusive) Resisters a stream, with its dependency and dependent information
| |
| streamRemoved | back to summary |
|---|---|
| public void streamRemoved(int streamId) Method that is invoked when a stream has been removed
| |
| Modifier and Type | Field and Description |
|---|---|
| private Http2PriorityTree. | dependents
streams that depend on this stream, in weighted order. |
| private Http2PriorityTree. | |
| private final int | streamId
This stream id of this node |
| pack-priv int | totalWeights
The sum of all dependencies weights |
| pack-priv int | weighting
The stream weighting |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| pack-priv boolean | |
| pack-priv void |
| dependents | back to summary |
|---|---|
| private Http2PriorityTree. streams that depend on this stream, in weighted order. May contains null at the end of the list | |
| parent | back to summary |
|---|---|
| private Http2PriorityTree. | |
| streamId | back to summary |
|---|---|
| private final int streamId This stream id of this node | |
| totalWeights | back to summary |
|---|---|
| pack-priv int totalWeights The sum of all dependencies weights | |
| weighting | back to summary |
|---|---|
| pack-priv int weighting The stream weighting | |
| Http2PriorityNode | back to summary |
|---|---|
| pack-priv Http2PriorityNode(int streamId, int weighting) | |
| addDependent | back to summary |
|---|---|
| public void addDependent(Http2PriorityTree. | |
| exclusive | back to summary |
|---|---|
| public void exclusive(Http2PriorityTree. | |
| hasDependents | back to summary |
|---|---|
| pack-priv boolean hasDependents() | |
| removeDependent | back to summary |
|---|---|
| pack-priv void removeDependent(Http2PriorityTree. | |