setReconnectPolicy method

dynamic setReconnectPolicy(
  1. String policy
)

Define the reconnect policy to be used after the Quick Reconnect phase.

See \link MigratoryDataClient.setQuickReconnectInitialDelay() \endlink to learn about the Quick Reconnect phase and the reconnect schedule for the policy defined by this method.

\param policy the reconnect policy to be used after the Quick Reconnect phase; the possible values are: \link MigratoryDataClient.CONSTANT_WINDOW_BACKOFF \endlink and \link MigratoryDataClient.TRUNCATED_EXPONENTIAL_BACKOFF \endlink; the default is the last one

Implementation

setReconnectPolicy(String policy) {
  clientImpl.setReconnectPolicy(policy);
}