OperationRetrySettings Class
- java.
lang. Object - microsoft.
servicefabric. services. communication. client. OperationRetrySettings
- microsoft.
public class OperationRetrySettings
Constructor Summary
Constructor | Description |
---|---|
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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
int |
getDefaultMaxRetryCount()
Specifies the maximum number of times to retry. |
Duration |
getMaxRetryBackoffIntervalOnNonTransientErrors()
Specifies the maximum interval to back-off before retrying in-case of Non transient errors |
Duration |
getMaxRetryBackoffIntervalOnTransientErrors()
Specifies the maximum interval to back-off before retrying in-case of Transient errors |
Constructor Details
OperationRetrySettings
public 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
public 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.
Parameters:
Method Details
getDefaultMaxRetryCount
public int getDefaultMaxRetryCount()
Specifies the maximum number of times to retry.
Returns:
getMaxRetryBackoffIntervalOnNonTransientErrors
public Duration getMaxRetryBackoffIntervalOnNonTransientErrors()
Specifies the maximum interval to back-off before retrying in-case of Non transient errors
Returns:
getMaxRetryBackoffIntervalOnTransientErrors
public Duration getMaxRetryBackoffIntervalOnTransientErrors()
Specifies the maximum interval to back-off before retrying in-case of Transient errors
Returns:
Applies to
Azure SDK for Java