60East recommends using the HAClient, which includes a robust implementation of disconnect handling
and reconnection, unless your application has needs that cannot be met by the HAClient behavior.
If you must use this interface, your implementation class must implement both
ClientDisconnectHandler
and
ClientDisconnectHandler2
, so that it will
be accepted by
Client.setDisconnectHandler(ClientDisconnectHandler)
.
The method from this interface can be used to obtain the exception that caused the client to disconnect.