你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
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: