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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應