Abstract base class which handles the generic logic needed to subscribe to runtime data changes of a service Subclass this and implement. More...
Public Member Functions | |
AbstractRuntimeDataListener (String uri, ClientConnector connector) | |
Constructor. | |
AbstractRuntimeDataListener (String uri, KanziConnectContext kanziConnectContext) | |
Constructor. | |
void | cleanup () |
Performs a cleanup for the object. | |
void | handleConnected () |
Handler for acquiring server connection. | |
void | handleDisconnected () |
Handler for losing server connection. | |
Protected Member Functions | |
void | finalize () |
abstract void | setDefaultValues () |
Reset the runtime data to default values, invoked e.g. when connection to server is lost. | |
Abstract base class which handles the generic logic needed to subscribe to runtime data changes of a service Subclass this and implement.
AbstractRuntimeDataListener | ( | String | uri, |
ClientConnector | connector ) |
Constructor.
uri | The URI to subscribe to, eg servicedata://<service_name>. |
connector | The ClientConnector used to connect to the server. |
AbstractRuntimeDataListener | ( | String | uri, |
KanziConnectContext | kanziConnectContext ) |
Constructor.
uri | The URI to subscribe to, eg servicedata://<service_name>. |
kanziConnectContext | The Kanzi Connect Context which owns the ClientConnector to access the server. |
void cleanup | ( | ) |
Performs a cleanup for the object.
After call object won't anymore receive updates from server. Calling will release all outside references and render object unusable.