smiklosovic commented on code in PR #2415:
URL: https://github.com/apache/cassandra/pull/2415#discussion_r1247045856
##########
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:
@maxim-chn do this mean that if I call this method, it will throw an
exception because `isEpAResponseTimeSlowerThanEpB` is not implemented? So by
default it will throw exception?
--
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]