Apama
10.5.4.1
|
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... | |
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.
typedef std::unique_ptr<EventHandler> com::apama::epl::EventHandler::ptr_t |
Pointer type for passing to registerEventHandler.
Pointer to a type used to add and remove channels on a registered handler.
|
inlinevirtual |
To allow virtual deletion.
|
pure virtual |
Implement this method to receive events.
type | The name of the event type |
event | The event either in string form or in map form depending on what was specified at subscription type |
channel | The channel the event is being delivered on. |