ZkAction en
Leksiqq edited this page Jan 27, 2024
·
6 revisions
Attention! This article, as well as this announcement, are automatically translated from Russian.
The elements correspond to options for updating data in ZooKeeper
.
-
Replase
- if there is a given subtree inZooKeeper
, it is completely replaced with a new one, otherwise it is created. If the passed value of any node isnull
, the node is ignored. -
Update
- for each node of the given Json object the following is performed:
- if this node is terminal and is present in
ZooKeeper
, and the passed value is notnull
- its value is updated; - if this node is present in
ZooKeeper
, and the passed value isnull
- the node is deleted; - if this node is not in
ZooKeeper
, the exceptionorg.apache.zookeeper.KeeperException.NoNodeException
is raised. - if this node is an array, an exception ZkJsonException is raised with
HResult == ZkJsonException.CannotUpdateArray
.
Previously: (ZkJsonSerializer) Start: (Overview) Next: (ZkStub)