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
-
Method Summary
Modifier and TypeMethodDescriptionint
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
-
Constructor Details
-
RemoteElasticAgentStartTimeComparator
public RemoteElasticAgentStartTimeComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<RemoteElasticInstance>
-