共用方式為


ExponentialBackoffRetry Interface

public interface ExponentialBackoffRetry

Defines an exponential backoff retry strategy, where the delay between retries will get progressively larger, limited by the max/min specified.

Method Summary

Modifier and Type Method and Description
String maximumInterval()

The maximum delay interval.

int maxRetryCount()

The maximum number of retries that will be attempted.

String minimumInterval()

The minimum delay interval.

String strategy()

The strategy of retries that will be used internally.

Method Details

maximumInterval

public String maximumInterval()

The maximum delay interval.

Returns:

The maximum retry delay.

maxRetryCount

public int maxRetryCount()

The maximum number of retries that will be attempted.

Returns:

The maximum retry count.

minimumInterval

public String minimumInterval()

The minimum delay interval.

Returns:

The minimum retry delay.

strategy

public String strategy() default "exponentialBackoff"

The strategy of retries that will be used internally.

Returns:

The strategy of retries.

Applies to