共用方式為


Incremental Class

  • java.lang.Object
    • RetryStrategy
      • com.microsoft.azure.elasticdb.core.commons.transientfaulthandling.Incremental

public class Incremental extends RetryStrategy

A retry strategy with a specified number of retry attempts and an incremental time interval between retries.

Constructor Summary

Constructor Description
Incremental()

Initializes a new instance of the Incremental class.

Incremental(int retryCount, Duration initialInterval, Duration increment)

Initializes a new instance of the Incremental class with the specified retry settings.

Incremental(String name, int retryCount, Duration initialInterval, Duration increment)

Initializes a new instance of the Incremental class with the specified name and retry settings.

Incremental(String name, int retryCount, Duration initialInterval, Duration increment, boolean firstFastRetry)

Initializes a new instance of the Incremental class with the specified number of retry attempts, time interval, retry strategy, and fast start option.

Method Summary

Modifier and Type Method and Description
ShouldRetry getShouldRetry()

Returns the corresponding ShouldRetry delegate.

Inherited Members

Constructor Details

Incremental

public Incremental()

Initializes a new instance of the Incremental class.

Incremental

public Incremental(int retryCount, Duration initialInterval, Duration increment)

Initializes a new instance of the Incremental class with the specified retry settings.

Parameters:

retryCount - The number of retry attempts.
initialInterval - The initial interval that will apply for the first retry.
increment - The incremental time value that will be used to calculate the progressive delay between retries.

Incremental

public Incremental(String name, int retryCount, Duration initialInterval, Duration increment)

Initializes a new instance of the Incremental class with the specified name and retry settings.

Parameters:

name - The retry strategy name.
retryCount - The number of retry attempts.
initialInterval - The initial interval that will apply for the first retry.
increment - The incremental time value that will be used to calculate the progressive delay between retries.

Incremental

public Incremental(String name, int retryCount, Duration initialInterval, Duration increment, boolean firstFastRetry)

Initializes a new instance of the Incremental class with the specified number of retry attempts, time interval, retry strategy, and fast start option.

Parameters:

name - The retry strategy name.
retryCount - The number of retry attempts.
initialInterval - The initial interval that will apply for the first retry.
increment - The incremental time value that will be used to calculate the progressive delay between retries.
firstFastRetry - true to immediately retry in the first attempt; otherwise, false. The subsequent retries will remain subject to the configured retry interval.

Method Details

getShouldRetry

public ShouldRetry getShouldRetry()

Returns the corresponding ShouldRetry delegate.

Returns:

The ShouldRetry delegate.

Applies to