shutdown

shutdown — prepares for an application shutdown or disconnect (Java and C# only).

Syntax

For Java, and C#:

void shutdown(String reason);

Parameters

reason

A character string that may be passed to the onConnectionFailure callback indicating the reason for the shutdown. If reason is null, a default string will be used.

Description

This method cleans up all resources, timers and sockets associated with the connection in preparation for application shutdown or removal of the DataHubConnector object. The application should not call any methods of the object or access any of its members after this method call is made. The result of any access to the object after this call is undefined.

See Also

onConnectionFailure