OperationRetrySettings Class

Definition

public class OperationRetrySettings
Inheritance
java.lang.Object
OperationRetrySettings

Constructors

OperationRetrySettings()

Instantiates OperationRetrySettings with default values for the retry settings. The default values for MaxRetryBackoffIntervalOnTransientErrors, NonTransientErrors are 2 seconds. The default value for MaxRetryCount is 10.

OperationRetrySettings(Duration maxRetryBackoffIntervalOnTransientErrors, Duration maxRetryBackoffIntervalOnNonTransientErrors, int defaultMaxRetryCount)

Instantiates OperationRetrySettings with default values for the retry settings. The default values for MaxRetryBackoffIntervalOnTransientErrors, NonTransientErrors are 2 seconds. The default value for MaxRetryCount is 10. Instantiates OperationRetrySettings with the supplied settings.

Methods

getDefaultMaxRetryCount()

Specifies the maximum number of times to retry.

getMaxRetryBackoffIntervalOnNonTransientErrors()

Specifies the maximum interval to back-off before retrying in-case of Non transient errors

getMaxRetryBackoffIntervalOnTransientErrors()

Specifies the maximum interval to back-off before retrying in-case of Transient errors