You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by "ibessonov (via GitHub)" <gi...@apache.org> on 2023/01/31 10:56:42 UTC

[GitHub] [ignite-3] ibessonov commented on a diff in pull request #1582: IGNITE-18643 Mutability assertions in configuration trees.

ibessonov commented on code in PR #1582:
URL: https://github.com/apache/ignite-3/pull/1582#discussion_r1091764037


##########
modules/configuration/src/main/java/org/apache/ignite/internal/configuration/tree/ConstructableTreeNode.java:
##########
@@ -41,4 +41,11 @@ public interface ConstructableTreeNode {
      * @return Copy of the object.
      */
     ConstructableTreeNode copy();
+
+    /**
+     * Make the node immutable. Following calls of mutating methods on the node should not happen and may result in errors.
+     *
+     * @return {@code true} if node became immutable, {@code false} if it has already been immutable before.
+     */
+    boolean publish();

Review Comment:
   Sure



-- 
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: notifications-unsubscribe@ignite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org