Package io.netty.handler.codec.http2
Class WeightedFairQueueByteDistributor.StateOnlyComparator
java.lang.Object
io.netty.handler.codec.http2.WeightedFairQueueByteDistributor.StateOnlyComparator
- All Implemented Interfaces:
Serializable,Comparator<WeightedFairQueueByteDistributor.State>
- Enclosing class:
WeightedFairQueueByteDistributor
private static final class WeightedFairQueueByteDistributor.StateOnlyComparator
extends Object
implements Comparator<WeightedFairQueueByteDistributor.State>, Serializable
A comparator for
WeightedFairQueueByteDistributor.State which has no associated Http2Stream object. The general precedence is:
- Was a stream activated or reserved (streams only used for priority are higher priority)
- Depth in the priority tree (closer to root is higher priority>
- Stream ID (higher stream ID is higher priority - used for tie breaker)
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final WeightedFairQueueByteDistributor.StateOnlyComparatorprivate static final long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
INSTANCE
-
-
Constructor Details
-
StateOnlyComparator
private StateOnlyComparator()
-
-
Method Details
-
compare
public int compare(WeightedFairQueueByteDistributor.State o1, WeightedFairQueueByteDistributor.State o2) - Specified by:
comparein interfaceComparator<WeightedFairQueueByteDistributor.State>
-