PCHcallable Class
The PCHcallable class supplies callback member functions
that are called by the Listener whenever it receives Custom Messages
or health status requests from connected Managers. Developers can
use a PCHcallable object to supply the value for the heartbeatObject parameter
when you are creating a Listener object.
The heartbeatObject parameter
provides the Listener with the ability to handle health status requests
or Custom Messages received from connected Managers. When no value
is specified for the heartbeatObject parameter,
then a PCHcallable object is automatically created.
For more information about implementing this class, see Supporting Communication from Managers.
Syntax
PCHcallable PCHLibrary;
Member Functions
- getHealth
- When a connected Manager requests the health status of the application, the member function is called and returns true if the application is up and operating normally.
- processCustomMessage
- When a connected Manager sends a Custom Message to the Listener, the Manager informs the application by calling processCustomMessage from an independent thread.