Class ResourceAvailabilityRanker
java.lang.Object
org.apache.pulsar.broker.loadbalance.impl.ResourceAvailabilityRanker
- All Implemented Interfaces:
Comparator<ResourceDescription>,LoadRanker
public class ResourceAvailabilityRanker
extends Object
implements LoadRanker, Comparator<ResourceDescription>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(ResourceDescription rd1, ResourceDescription rd2) longgetRank(ResourceDescription resourceDescription) Methods 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
-
Constructor Details
-
ResourceAvailabilityRanker
public ResourceAvailabilityRanker()
-
-
Method Details
-
getRank
- Specified by:
getRankin interfaceLoadRanker
-
compare
- Specified by:
comparein interfaceComparator<ResourceDescription>
-