Class FixedDelayBackoffStrategy
- java.lang.Object
-
- software.amazon.awssdk.core.retry.backoff.FixedDelayBackoffStrategy
-
- All Implemented Interfaces:
BackoffStrategy
@Deprecated public final class FixedDelayBackoffStrategy extends Object implements BackoffStrategy
Deprecated.Use insteadBackoffStrategyandBackoffStrategy.fixedDelay(Duration).Simple backoff strategy that always uses a fixed delay for the delay before the next retry attempt.
-
-
Field Summary
-
Fields inherited from interface software.amazon.awssdk.core.retry.backoff.BackoffStrategy
RETRIES_ATTEMPTED_CEILING
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description DurationcomputeDelayBeforeNextRetry(RetryPolicyContext context)Deprecated.Compute the delay before the next retry request.static FixedDelayBackoffStrategycreate(Duration fixedBackoff)Deprecated.booleanequals(Object o)Deprecated.inthashCode()Deprecated.StringtoString()Deprecated.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.core.retry.backoff.BackoffStrategy
calculateExponentialDelay
-
-
-
-
Method Detail
-
computeDelayBeforeNextRetry
public Duration computeDelayBeforeNextRetry(RetryPolicyContext context)
Deprecated.Description copied from interface:BackoffStrategyCompute the delay before the next retry request. This strategy is only consulted when there will be a next retry.- Specified by:
computeDelayBeforeNextRetryin interfaceBackoffStrategy- Parameters:
context- Context about the state of the last request and information about the number of requests made.- Returns:
- Amount of time in milliseconds to wait before the next attempt. Must be non-negative (can be zero).
-
create
public static FixedDelayBackoffStrategy create(Duration fixedBackoff)
Deprecated.
-
-