Apache Mesos
|
This interface specifies the public interface an event handler class must implement. More...
#include <zookeeper.hpp>
Public Member Functions | |
virtual void | process (int type, int state, int64_t sessionId, const std::string &path)=0 |
virtual | ~Watcher () |
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
|
inlinevirtual |
|
pure virtual |
Implemented in mesos::internal::tests::ZooKeeperTest::TestWatcher, and ProcessWatcher< T >.