maxim-chn commented on code in PR #2415:
URL: https://github.com/apache/cassandra/pull/2415#discussion_r1249247460
##########
src/java/org/apache/cassandra/gms/IFailureDetector.java:
##########
@@ -37,6 +40,28 @@ public interface IFailureDetector
*/
public boolean isAlive(InetAddressAndPort ep);
+ /**
+ * Sorts the endpoints based on their response time.
+ * Nodes at smaller indexes have faster response time than nodes at higher
indexes.
+ * @param List<InetAddressAndPort> endpoints.
+ * @return void.
+ */
+ public default void sortEndpointsByResponseTime(List<InetAddressAndPort>
endpoints)
Review Comment:
@smiklosovic , yes indeed.
The motivation is to encourage any future implementation of
`IFailureDetector` (besides `FailureDetector`) to take into consideration how 2
endpoints are compared in terms of response time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]