zookeeper-cpp
ZooKeeper Client for C++
|
Public Member Functions | |
virtual void | close ()=0 |
virtual future< get_result > | get (string_view path)=0 |
virtual future< watch_result > | watch (string_view path)=0 |
virtual future < get_children_result > | get_children (string_view path)=0 |
virtual future < watch_children_result > | watch_children (string_view path)=0 |
virtual future< exists_result > | exists (string_view path)=0 |
virtual future < watch_exists_result > | watch_exists (string_view path)=0 |
virtual future< create_result > | create (string_view path, const buffer &data, const acl &rules, create_mode mode)=0 |
virtual future< set_result > | set (string_view path, const buffer &data, version check)=0 |
virtual future< void > | erase (string_view path, version check)=0 |
virtual future< get_acl_result > | get_acl (string_view path) const =0 |
virtual future< void > | set_acl (string_view path, const acl &rules, acl_version check)=0 |
virtual future< multi_result > | commit (multi_op &&txn)=0 |
virtual future< void > | load_fence ()=0 |
virtual zk::state | state () const =0 |
virtual future< zk::state > | watch_state () |
Watch for a state change. More... | |
Static Public Member Functions | |
static std::shared_ptr < connection > | connect (const connection_params &) |
static std::shared_ptr < connection > | connect (string_view conn_string) |
Protected Member Functions | |
virtual void | on_session_event (zk::state new_state) |
Call this from derived classes when a session event happens. More... | |
Definition at line 24 of file connection.hpp.
|
protectedvirtual |
Call this from derived classes when a session event happens.
This triggers the delivery of all promises of state changes (issued through watch_state
).
Definition at line 42 of file connection.cpp.
|
virtual |
Watch for a state change.
Definition at line 35 of file connection.cpp.