Inheritance diagram for code::SQLEventHandler::SQLEventCallback:
Public Member Functions | |
virtual void | actionPerformed (const Buffer &) |
calls findNewRecords() on the SQLIndex | |
virtual | ~SQLEventCallback () |
bool | checkWait () |
checks the wait flag, returning its value and then setting it to false, so that we don't wait the next time we are called. | |
SQLEventCallback (SQLIndex *index) | |
virtual void | actionPerformedOnError () |
This is the function that will be invoked when there is a system error making event notification not possible, either for the particular event requested or for all events. |
virtual code::SQLEventHandler::SQLEventCallback::~SQLEventCallback | ( | ) | [inline, virtual] |
code::SQLEventHandler::SQLEventCallback::SQLEventCallback | ( | SQLIndex * | index | ) | [inline] |
virtual void code::SQLEventHandler::SQLEventCallback::actionPerformed | ( | const Buffer & | ) | [virtual] |
virtual void code::EventCallback::actionPerformedOnError | ( | ) | [inline, virtual, inherited] |
This is the function that will be invoked when there is a system error making event notification not possible, either for the particular event requested or for all events.
Additional arguments may be simply obtained by adding the appropriate arguments to your EventCallback subclass. (See for example, the more rounded LBEventCallback, which gives you access to the LB name used for update notification).
bool code::SQLEventHandler::SQLEventCallback::checkWait | ( | ) |
checks the wait flag, returning its value and then setting it to false, so that we don't wait the next time we are called.
The wait flag is set to "true" by actionPerformed() if the corresponding SQLIndex does not have any new records.
The checkWait() is called by the SQLEventHandler in the event loop.