ascherbakoff commented on code in PR #5124:
URL: https://github.com/apache/ignite-3/pull/5124#discussion_r1935162794
##########
modules/raft-api/src/main/java/org/apache/ignite/internal/raft/service/SafeTimeAwareCommandClosure.java:
##########
@@ -17,10 +17,26 @@
package org.apache.ignite.internal.raft.service;
+import org.apache.ignite.internal.hlc.HybridTimestamp;
import org.apache.ignite.internal.raft.WriteCommand;
+import org.jetbrains.annotations.Nullable;
/**
- * The marker interface for a write command closure.
+ * The marker interface for a safe time aware command closure.
*/
-public interface WriteCommandClosure extends CommandClosure<WriteCommand> {
+public interface SafeTimeAwareCommandClosure extends
CommandClosure<WriteCommand> {
+ /**
+ * Get the safe timestamp.
+ *
+ * @return The timestamp.
+ */
+ @Override
+ @Nullable HybridTimestamp safeTimestamp();
+
+ /**
+ * Set the safe time.
+ *
+ * @param safeTs Safe timestamp.
+ */
+ default void safeTime(HybridTimestamp safeTs) {}
Review Comment:
🆗
--
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]