Apama  10.3.1.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
com::apama::epl::EventHandler Class Referenceabstract

An interface for subscribing to events and receiving them in the plug-in. More...

#include <epl_plugin.hpp>

Public Types

typedef EventHandlerSubscription subscription_t
 Pointer to a type used to add and remove channels on a registered handler. More...
 
typedef std::unique_ptr
< EventHandler
ptr_t
 Pointer type for passing to registerEventHandler. More...
 

Public Member Functions

virtual ~EventHandler ()
 To allow virtual deletion. More...
 
virtual void handleEvent (const char *type, data_t &&event, const char *channel)=0
 Implement this method to receive events. More...
 

Detailed Description

An interface for subscribing to events and receiving them in the plug-in.

Classes provide an instance of this to receive callbacks. EventHandler registration is done by CorrelatorInterface::registerEventHandler.

Member Typedef Documentation

Pointer type for passing to registerEventHandler.

Pointer to a type used to add and remove channels on a registered handler.

Constructor & Destructor Documentation

virtual com::apama::epl::EventHandler::~EventHandler ( )
inlinevirtual

To allow virtual deletion.

Member Function Documentation

virtual void com::apama::epl::EventHandler::handleEvent ( const char *  type,
data_t &&  event,
const char *  channel 
)
pure virtual

Implement this method to receive events.

Parameters
typeThe name of the event type
eventThe event either in string form or in map form depending on what was specified at subscription type
channelThe channel the event is being delivered on.

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