Interface StandardRetryStrategy.Builder
- All Superinterfaces:
RetryStrategy.Builder<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
Modifier and TypeMethodDescriptionbuild()Build a newRetryStrategywith the current configuration on this builder.circuitBreakerEnabled(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
-
Method Details
-
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()Description copied from interface:RetryStrategy.BuilderBuild a newRetryStrategywith the current configuration on this builder.- Specified by:
buildin interfaceRetryStrategy.Builder<StandardRetryStrategy.Builder,StandardRetryStrategy>
-