4.3. Making Callbacks

There are several callbacks associated with the DataHubConnector class. In C++ these are methods of the DataHubConnector class itself, while in Java and .NET they are methods of a separate interface, the DataHubEventConsumer interface.

Status Changes

onStatusChange - a virtual method invoked on change of status.

Connections

onConnectionSuccess - a virtual method invoked when a connection is established.
onAlive - a virtual method invoked on receipt of a heartbeat from the DataHub.
onConnectionFailure - a virtual method invoked when a connection or attempt to connect fails.

Message Receipts

onAsyncMessage - a virtual method invoked on receipt of a Cascade DataHub message.
onSuccess - a virtual method invoked on receipt of a success message.
onError - a virtual method invoked on receipt of an error message.

Point Changes

onPointChange - a virtual method invoked on receipt of a point value change.
onPointEcho - a virtual method invoked on receipt of a locally changed point value.