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 newRetryStrategy
with 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 theRetryStrategy
is used for more than one call. It's recommended that aRetryStrategy
be reused for all calls to a single unreliable resource. It's also recommended that separateRetryStrategy
s be used for calls to unrelated resources.By default, this is
true
. -
build
StandardRetryStrategy build()Description copied from interface:RetryStrategy.Builder
Build a newRetryStrategy
with the current configuration on this builder.- Specified by:
build
in interfaceRetryStrategy.Builder<StandardRetryStrategy.Builder,
StandardRetryStrategy>
-