Apama
10.2.0.3
|
#include <correlator_plugin.hpp>
Public Member Functions | |
virtual | ~AP_Chunk () |
virtual AP_Chunk * | copy (const AP_Context &ctx) const =0 |
AP_Chunk (const AP_Context &) | |
AP_Chunk () | |
Plugins should inherit from this class and add suitable data and function members in the derived class to manage their private data structures, in memory allocated by the plugin itself. AP_Chunk instances are passed in and out of plugin functions as the 'chunk value' of AP_Type objects, and referenced in MontitorScript code as variables of type 'chunk'. Note that the contents of a chunk are entirely opaque to EPL.
|
inlinevirtual |
It is essential that every AP_Chunk derived class implements this method to free any resources allocated by the derived class. The Engine will arrange for the destructor to be called when the associated EPL chunk object is deleted.
The correlator interface may not be used from a chunk's destructor.
Also, correlator interface calls on another thread may block until the chunk's destructor returns. Chunk destructors that can block should therefore be careful to avoid deadlocking against such a thread.
|
inlineexplicit |
Obsolete constructor retained for backward compatibility
This function is deprecated.
The default constructor should be used instead.
|
inline |
This default constructor should be used.
|
pure virtual |
As with the destructor, it is essential for AP_Chunk derived classes to implement this method, to ensure that EPL assignments to/from chunk objects work correctly.
ctx | Execution context for the copy operation. |