zookeeper-cpp
ZooKeeper Client for C++
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups
zk::connection Class Referenceabstract
+ Inheritance diagram for zk::connection:

Public Member Functions

virtual void close ()=0
 
virtual future< get_resultget (string_view path)=0
 
virtual future< watch_resultwatch (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_resultexists (string_view path)=0
 
virtual future
< watch_exists_result
watch_exists (string_view path)=0
 
virtual future< create_resultcreate (string_view path, const buffer &data, const acl &rules, create_mode mode)=0
 
virtual future< set_resultset (string_view path, const buffer &data, version check)=0
 
virtual future< void > erase (string_view path, version check)=0
 
virtual future< get_acl_resultget_acl (string_view path) const =0
 
virtual future< void > set_acl (string_view path, const acl &rules, acl_version check)=0
 
virtual future< multi_resultcommit (multi_op &&txn)=0
 
virtual future< void > load_fence ()=0
 
virtual zk::state state () const =0
 
virtual future< zk::statewatch_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...
 

Detailed Description

Definition at line 24 of file connection.hpp.

Member Function Documentation

void zk::connection::on_session_event ( zk::state  new_state)
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.

future< zk::state > zk::connection::watch_state ( )
virtual

Watch for a state change.

Definition at line 35 of file connection.cpp.


The documentation for this class was generated from the following files: