Package software.amazon.awssdk.retries
Interface StandardRetryStrategy.Builder
-
- All Superinterfaces:
Buildable,RetryStrategy.Builder<StandardRetryStrategy.Builder,StandardRetryStrategy>,SdkBuilder<StandardRetryStrategy.Builder,StandardRetryStrategy>
- All Known Implementing Classes:
DefaultStandardRetryStrategy.Builder
- Enclosing interface:
- StandardRetryStrategy
public static interface StandardRetryStrategy.Builder extends RetryStrategy.Builder<StandardRetryStrategy.Builder,StandardRetryStrategy>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StandardRetryStrategybuild()StandardRetryStrategy.BuildercircuitBreakerEnabled(Boolean circuitBreakerEnabled)Whether circuit breaking is enabled for this strategy.-
Methods inherited from interface software.amazon.awssdk.retries.api.RetryStrategy.Builder
backoffStrategy, maxAttempts, retryOnException, retryOnException, retryOnExceptionInstanceOf, retryOnExceptionOrCause, retryOnExceptionOrCauseInstanceOf, retryOnRootCause, retryOnRootCauseInstanceOf, throttlingBackoffStrategy, treatAsThrottling, useClientDefaults
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation
-
-
-
-
Method Detail
-
circuitBreakerEnabled
StandardRetryStrategy.Builder circuitBreakerEnabled(Boolean circuitBreakerEnabled)
Whether circuit breaking is enabled for this strategy.The circuit breaker will prevent attempts (even below the
RetryStrategy.Builder.maxAttempts(int)) if a large number of failures are observed by this executor.Note: The circuit breaker scope is local to the created
RetryStrategy, and will therefore not be effective unless theRetryStrategyis used for more than one call. It's recommended that aRetryStrategybe reused for all calls to a single unreliable resource. It's also recommended that separateRetryStrategys be used for calls to unrelated resources.By default, this is
true.
-
build
StandardRetryStrategy build()
- Specified by:
buildin interfaceBuildable- Specified by:
buildin interfaceRetryStrategy.Builder<StandardRetryStrategy.Builder,StandardRetryStrategy>- Specified by:
buildin interfaceSdkBuilder<StandardRetryStrategy.Builder,StandardRetryStrategy>
-
-