Abstract base class for application dispatch handlers registered with AsyncComm. More...
#include <DispatchHandler.h>
Public Member Functions | |
virtual | ~DispatchHandler () |
Destructor. More... | |
virtual void | handle (EventPtr &event_ptr)=0 |
Callback method. More... | |
Abstract base class for application dispatch handlers registered with AsyncComm.
Dispatch handlers are the mechanism by which an application is notified of communication events.
Definition at line 46 of file DispatchHandler.h.
|
inlinevirtual |
Destructor.
Definition at line 51 of file DispatchHandler.h.
|
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 |
Implemented in Hypertable::ConnectionManager, ResponseHandlerUDP, Hypertable::MetaLog::Writer::WriteScheduler, ResponseHandlerTCP, Hypertable::TimerHandler, Hypertable::DispatchHandlerOperation, ResponseHandler, Hypertable::DispatchHandlerSynchronizer, Hypertable::TableMutatorSyncDispatchHandler, Hypertable::MetricsHandler, Hypertable::FsBroker::Lib::MetricsHandler, Hyperspace::MetricsHandler, Hypertable::TableMutatorIntervalHandler, Hypertable::ConnectionHandler, Hypertable::MetricsHandler, Hypertable::FsBroker::Lib::ConnectionHandler, Hyperspace::ClientKeepaliveHandler, Hypertable::TableMutatorAsyncDispatchHandler, Hypertable::TableScannerDispatchHandler, Hypertable::FsBroker::Lib::ClientBufferedReaderHandler, Hyperspace::ClientConnectionHandler, Hypertable::ReplayDispatchHandler, Hyperspace::ServerKeepaliveHandler, Hypertable::RangeServer::ConnectionHandler, Hypertable::GroupCommitTimerHandler, and Hyperspace::ServerConnectionHandler.