Vostok.ZooKeeper
  • Overview
  • Quickstart
  • Basics
    • Creating a Client
    • Connecting to a ZooKeeper Cluster
    • Using Client
    • Limitations
  • Operations
    • Common Concepts
    • Creating a Node
    • Deleting a Node
    • Probing Node Existence
    • Getting Children of a Node
    • Getting of a Node Data
    • Setting of a Node Data
  • Observing Node Events
  • Recipes
    • Distributed Lock
Powered by GitBook
On this page
  1. Operations

Probing Node Existence

Existence of node can be checked with ExistsRequest:

var existsResult = await client.ExistsAsync(new ExistsRequest("/path/to/probed/node"));

During Exists request a watcher can be set onto a probed node.

The result of this operation consists of bool Exists and NodeStat Stat with the latter one being not-null only when node exists.

PreviousDeleting a NodeNextGetting Children of a Node

Last updated 3 years ago