Class RemoteElasticAgentStartTimeComparator
- java.lang.Object
-
- com.atlassian.bamboo.agent.elastic.server.RemoteElasticAgentStartTimeComparator
-
- All Implemented Interfaces:
Comparator<RemoteElasticInstance>
public class RemoteElasticAgentStartTimeComparator extends Object implements Comparator<RemoteElasticInstance>
This comparator sorts RemoteElasticAgents in chronological order of instance launch time (earliest/oldest first).
-
-
Constructor Summary
Constructors Constructor Description RemoteElasticAgentStartTimeComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(RemoteElasticInstance agent1, RemoteElasticInstance agent2)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(RemoteElasticInstance agent1, RemoteElasticInstance agent2)
- Specified by:
compare
in interfaceComparator<RemoteElasticInstance>
-
-