PCHcallable Interface
The PCHcallable interface supplies callback member functions that will be called by the Listener whenever it receives Custom Messages or health status requests from connected Managers.
Important: When the application does not require the functionality
afforded by the callbacks specified in this interface, they may
use an instance of the defaultCallable class
in the constructor of the Listener object.
This class is a stubbed-out implementation of the PCHcallable interface.
For more information about implementing this class, see Supporting Communication from Managers.
Syntax
PCHcallable PCHLibrary =
new defaultCallable();
Methods
- getHealth
- When a connected Manager requests the health status of the application, this method returns true if the application is up and operating normally.
- processCustomMessage
- When a connected Manager sends a Custom Message to the Listener, the Manager will inform the application of this by calling processCustomMessage from an independent thread.