Apache Mesos
Public Member Functions | List of all members
Watcher Class Referenceabstract

This interface specifies the public interface an event handler class must implement. More...

#include <zookeeper.hpp>

Inheritance diagram for Watcher:
mesos::internal::tests::ZooKeeperTest::TestWatcher ProcessWatcher< T >

Public Member Functions

virtual void process (int type, int state, int64_t sessionId, const std::string &path)=0
 
virtual ~Watcher ()
 

Detailed Description

This interface specifies the public interface an event handler class must implement.

A ZooKeeper client will get various events from the ZooKeeper server it connects to. An application using such a client handles these events by registering a callback object with the client. The callback object is expected to be an instance of a class that implements Watcher interface.

Note that the watcher is invoked by ZooKeeper from a single thread. See http://zookeeper.apache.org/doc/trunk/zookeeperProgrammers.html#C+Binding

Constructor & Destructor Documentation

virtual Watcher::~Watcher ( )
inlinevirtual

Member Function Documentation

virtual void Watcher::process ( int  type,
int  state,
int64_t  sessionId,
const std::string &  path 
)
pure virtual

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