setReconnectionDelay
setReconnectionDelay — sets the delay time between reconnection attempts.
void setReconnectionDelay( | recon_ms); |
long recon_ms;recon_msThe delay time, in milliseconds, after connection failure before another attempt is automatically made.
The
DataHubConnector class provides an internal
facility to automatically attempt reconnection in event of a failure. The
default
onConnectionFailure method will trigger the
reconnection timer.
When the timer fires, the
retryConnection method is called to cancel
the timer and attempt to connect.