Implement the Revised Retry Logic and Heartbeat Config API
Description
The Retry Logic and Heartbeat Config API have been revised.
Summary:
maxAttempts (replaces maxRetries) :
The max attempts to connect to a remote server before deciding to stop when encountering transient errors. The initial request will also count toward the maxAttempts value.
Setting the value to 0 means that the default value which is 10 times for a single shot replicator and max-int times for a continuous replicator will be used. And the maxAttempts is set to 0 by default.
Setting the value to 1 means that the replicator will perform an initial request and if there is a transient error occurs, the replicator will stop without retrying.
Setting a negative value is not allowed.
maxAttemptWaitTime (replaces maxRetryWaitTime for naming consistency with maxAttempts) :
The max wait time between attempts in seconds.
Setting the value to 0 means that the default value of 300 seconds will be used. And the maxAttemptWaitTime is set to 0 by default.
Setting a negative value is not allowed.
heartbeat (no naming change)
Ping interval to keep the connection between the replicator and SG in seconds.
Setting the value to 0 means that the default value of 300 seconds will be used. And the heartbeat is set to 0 by default.
The Retry Logic and Heartbeat Config API have been revised.
Summary:
maxAttempts (replaces maxRetries) :
The max attempts to connect to a remote server before deciding to stop when encountering transient errors. The initial request will also count toward the maxAttempts value.
Setting the value to 0 means that the default value which is 10 times for a single shot replicator and max-int times for a continuous replicator will be used. And the maxAttempts is set to 0 by default.
Setting the value to 1 means that the replicator will perform an initial request and if there is a transient error occurs, the replicator will stop without retrying.
Setting a negative value is not allowed.
maxAttemptWaitTime (replaces maxRetryWaitTime for naming consistency with maxAttempts) :
The max wait time between attempts in seconds.
Setting the value to 0 means that the default value of 300 seconds will be used. And the maxAttemptWaitTime is set to 0 by default.
Setting a negative value is not allowed.
heartbeat (no naming change)
Ping interval to keep the connection between the replicator and SG in seconds.
Setting the value to 0 means that the default value of 300 seconds will be used. And the heartbeat is set to 0 by default.
Setting a negative value is not allowed.
API Doc: https://docs.google.com/document/d/1C7qF2GipBNTAzyfOFU2QbZZM0sqzALEiCp0VUfgsImI