public class ServerLatencyComparator extends Object implements Comparator<Server>, Serializable
Server
's based on the latency of the servers.Modifier and Type | Field and Description |
---|---|
static Comparator<Server> |
COMPARATOR
A singleton instance of the comparator.
|
public static final Comparator<Server> COMPARATOR
public int compare(Server o1, Server o2)
Compares the servers based on their respective average latencies.
compare
in interface Comparator<Server>
Comparator.compare(T, T)
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.