setReconnectionDelay

setReconnectionDelay — sets the delay time between reconnection attempts.

Syntax

For C++, Java, and C#:

void setReconnectionDelay(long recon_ms);

Parameters

recon_ms

The delay time, in milliseconds, after connection failure before another attempt is automatically made.

Description

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.

See Also

getReconnectionDelay, startReconnectionTimer, cancelReconnectionTimer