belliottsmith commented on code in PR #7:
URL: https://github.com/apache/cassandra-accord/pull/7#discussion_r1013056250
##########
accord-core/src/main/java/accord/primitives/ProgressToken.java:
##########
@@ -0,0 +1,72 @@
+package accord.primitives;
+
+import accord.coordinate.Outcome;
+import accord.local.Status;
+import accord.local.Status.Durability;
+
+import javax.annotation.Nonnull;
+
+/**
+ * A representation of activity on a command, so that peers may monitor a
command to ensure it is making progress
+ */
+public class ProgressToken implements Comparable<ProgressToken>, Outcome
+{
+ public static final ProgressToken NONE = new
ProgressToken(Durability.NotDurable, Status.NotWitnessed, Ballot.ZERO, false);
Review Comment:
Sort of. Except that once you have any state whatsoever you inherently have
a ballot associated with it, so I'm not sure it is even meaningful to say "no
value" for a ballot?
--
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]