Apama
10.15.1.2
|
Data structure used for declaring methods in the initialize function (EPLPlugin) to be exported to EPL. More...
#include <epl_plugin.hpp>
Public Member Functions | |
size_t | getNumMethods () |
Return the number of declared methods. More... | |
template<typename FN_T , FN_T fn> | |
void | registerMethod (const char *name, bool blocking=true) |
Declare a method using the default signature. More... | |
template<typename FN_T , FN_T fn> | |
void | registerMethod (const char *name, const char *signature, bool blocking=true) |
Declare a method using a custom signature. More... | |
Data structure used for declaring methods in the initialize function (EPLPlugin) to be exported to EPL.
|
inline |
Return the number of declared methods.
void com::apama::epl::MethodData< DERIVED >::registerMethod | ( | const char * | name, |
bool | blocking = true |
||
) |
Declare a method using the default signature.
Use this method if your arguments and return values are only:
name | The name of the function to expose in EPL. This must be unique for a plug-in - there is no method overloading. |
blocking | True if the function may block. False if it will never block. Default is true. May be overridden later with CorrelatorInterface::pluginMethodBlocking(). WARNING: blocking when declared as non-blocking can cause the correlator to deadlock |
void com::apama::epl::MethodData< DERIVED >::registerMethod | ( | const char * | name, |
const char * | signature, | ||
bool | blocking = true |
||
) |
Declare a method using a custom signature.
Use this method if your arguments or return values contain:
name | The name of the function to expose in EPL. This must be unique for a plug-in - there is no method overloading. |
signature | The epl function type (in action variable signature form) of this function. |
An example signature would be:
blocking | True if the function may block. False if it will never block. Default is true. May be overridden later with CorrelatorInterface::pluginMethodBlocking(). WARNING: blocking when declared as non-blocking can cause the correlator to deadlock |