(somewhat) Abstract base class for response handlers; Defines the message queue and the mutex and condition variable to protect it. More...
Public Member Functions | |
ResponseHandler () | |
virtual | ~ResponseHandler () |
virtual void | handle (EventPtr &event_ptr)=0 |
Callback method. More... | |
virtual bool | get_response (EventPtr &event_ptr)=0 |
Public Member Functions inherited from Hypertable::DispatchHandler | |
virtual | ~DispatchHandler () |
Destructor. More... | |
Protected Attributes | |
std::queue< EventPtr > | m_queue |
std::mutex | m_mutex |
std::condition_variable | m_cond |
(somewhat) Abstract base class for response handlers; Defines the message queue and the mutex and condition variable to protect it.
Definition at line 95 of file sampleClient.cc.
|
inline |
Definition at line 99 of file sampleClient.cc.
|
inlinevirtual |
Definition at line 100 of file sampleClient.cc.
|
pure virtual |
Implemented in ResponseHandlerUDP, and ResponseHandlerTCP.
|
pure virtual |
Callback method.
When the Comm layer needs to deliver an event to the application, this method is called to do so. The set of event types include, CONNECTION_ESTABLISHED, DISCONNECT, MESSAGE, ERROR, and TIMER.
event_ptr | smart pointer to Event object |
Implements Hypertable::DispatchHandler.
Implemented in ResponseHandlerUDP, and ResponseHandlerTCP.
|
protected |
Definition at line 109 of file sampleClient.cc.
|
protected |
Definition at line 108 of file sampleClient.cc.
|
protected |
Definition at line 107 of file sampleClient.cc.