belliottsmith commented on a change in pull request #1:
URL: https://github.com/apache/cassandra-accord/pull/1#discussion_r798464083



##########
File path: accord-core/src/main/java/accord/topology/Topologies.java
##########
@@ -0,0 +1,272 @@
+package accord.topology;
+
+import accord.local.Node;
+import accord.utils.IndexedConsumer;
+import com.google.common.base.Preconditions;
+
+import java.util.*;
+import java.util.function.Consumer;
+
+public interface Topologies
+{
+    Topology current();
+
+    default long currentEpoch()
+    {
+        return current().epoch;
+    }
+
+    boolean fastPathPermitted();
+
+    // topologies are stored in reverse epoch order, with the highest epoch at 
idx 0
+    Topology get(int i);
+
+    int size();
+
+    int totalShards();
+
+    Set<Node.Id> nodes();
+
+    Topologies withMinEpoch(long epoch);

Review comment:
       Perhaps `truncateWithMinEpoch`? Or `removeEpochsBefore`?




-- 
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]

Reply via email to