public static interface StandardRetryStrategy.Builder extends RetryStrategy.Builder<StandardRetryStrategy.Builder,StandardRetryStrategy>
| Modifier and Type | Method and Description |
|---|---|
StandardRetryStrategy |
build()
Build a new
RetryStrategy with the current configuration on this builder. |
StandardRetryStrategy.Builder |
circuitBreakerEnabled(Boolean circuitBreakerEnabled)
Whether circuit breaking is enabled for this strategy.
|
backoffStrategy, maxAttempts, retryOnException, retryOnException, retryOnExceptionInstanceOf, retryOnExceptionOrCause, retryOnExceptionOrCauseInstanceOf, retryOnRootCause, retryOnRootCauseInstanceOf, throttlingBackoffStrategy, treatAsThrottling, useClientDefaultsapplyMutationStandardRetryStrategy.Builder circuitBreakerEnabled(Boolean circuitBreakerEnabled)
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 the RetryStrategy is used for more than one call. It's recommended
that a RetryStrategy be reused for all calls to a single unreliable resource. It's also recommended that
separate RetryStrategys be used for calls to unrelated resources.
By default, this is true.
StandardRetryStrategy build()
RetryStrategy.BuilderRetryStrategy with the current configuration on this builder.build in interface Buildablebuild in interface RetryStrategy.Builder<StandardRetryStrategy.Builder,StandardRetryStrategy>build in interface SdkBuilder<StandardRetryStrategy.Builder,StandardRetryStrategy>Copyright © 2026. All rights reserved.