3 #include <zk/config.hpp>
8 #include <unordered_map>
10 #include "connection.hpp"
13 typedef struct _zhandle zhandle_t;
30 virtual void close()
override;
34 virtual future<get_result>
get(string_view path)
override;
36 virtual future<watch_result> watch(string_view path)
override;
38 virtual future<get_children_result> get_children(string_view path)
override;
40 virtual future<watch_children_result> watch_children(string_view path)
override;
42 virtual future<exists_result> exists(string_view path)
override;
44 virtual future<watch_exists_result> watch_exists(string_view path)
override;
46 virtual future<create_result> create(string_view path,
52 virtual future<set_result> set(string_view path,
const buffer& data,
version check)
override;
54 virtual future<void> erase(string_view path,
version check)
override;
56 virtual future<get_acl_result> get_acl(string_view path)
const override;
58 virtual future<void> set_acl(string_view path,
const acl& rules,
acl_version check)
override;
60 virtual future<multi_result> commit(
multi_op&& txn)
override;
62 virtual future<void> load_fence()
override;
76 template <
typename TResult>
95 std::unordered_map<ptr<const void>, std::shared_ptr<watcher>> _watches;
96 mutable std::mutex _watches_protect;
T * ptr
A simple, unowned pointer.
state
Enumeration of states the client may be at when a watch triggers.
Represents a version of the ACL of a ZNode.
create_mode
When used in client::set, this value determines how the znode is created on the server.
Used to specify parameters for a connection.
Controls the import of the string_view type.
An access control list is a wrapper around acl_rule instances.
Represents a version of the data.
ZKPP_BUFFER_TYPE buffer
The buffer type.