Class RetryOptions.Builder (2.0.0)

public static final class RetryOptions.Builder

Provides static creation methods for RetryOptions.

Inheritance

java.lang.Object > RetryOptions.Builder

Static Methods

withDefaults()

public static RetryOptions withDefaults()

Returns default RetryOptions.

Returns
Type Description
RetryOptions

withMaxBackoffSeconds(double maxBackoffSeconds)

public static RetryOptions withMaxBackoffSeconds(double maxBackoffSeconds)
Parameter
Name Description
maxBackoffSeconds double
Returns
Type Description
RetryOptions

withMaxDoublings(int maxDoublings)

public static RetryOptions withMaxDoublings(int maxDoublings)

Returns default RetryOptions and calls RetryOptions#maxDoublings(int).

Parameter
Name Description
maxDoublings int
Returns
Type Description
RetryOptions

withMinBackoffSeconds(double minBackoffSeconds)

public static RetryOptions withMinBackoffSeconds(double minBackoffSeconds)
Parameter
Name Description
minBackoffSeconds double
Returns
Type Description
RetryOptions

withTaskAgeLimitSeconds(long taskAgeLimitSeconds)

public static RetryOptions withTaskAgeLimitSeconds(long taskAgeLimitSeconds)
Parameter
Name Description
taskAgeLimitSeconds long
Returns
Type Description
RetryOptions

withTaskRetryLimit(int taskRetryLimit)

public static RetryOptions withTaskRetryLimit(int taskRetryLimit)
Parameter
Name Description
taskRetryLimit int
Returns
Type Description
RetryOptions