OperationRetrySettings Class

  • java.lang.Object
    • microsoft.servicefabric.services.communication.client.OperationRetrySettings

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:

maxRetryBackoffIntervalOnTransientErrors - Specifies the maximum interval to back-off before retrying incase of Transient errors
maxRetryBackoffIntervalOnNonTransientErrors - Specifies the maximum interval to back-off before retrying incase of Non transient errors
defaultMaxRetryCount - Specifies the maximum number of times to retry.

Method Details

getDefaultMaxRetryCount

public int getDefaultMaxRetryCount()

Specifies the maximum number of times to retry.

Returns:

Maximum number of times to retry a specific exception.

getMaxRetryBackoffIntervalOnNonTransientErrors

public Duration getMaxRetryBackoffIntervalOnNonTransientErrors()

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

Returns:

Maximum retry interval to back-off on non transient errors

getMaxRetryBackoffIntervalOnTransientErrors

public Duration getMaxRetryBackoffIntervalOnTransientErrors()

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

Returns:

Maximum retry interval to back-off on transient errors

Applies to