public static class RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder extends RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder, RetryInterceptorBuilder.StatefulRetryInterceptorBuilder, RetryInterceptorBuilder.StatelessRetryInterceptorBuilder
label, recoverer, retryOperations, retryTemplate, simpleRetryPolicy
Modifier and Type | Method and Description |
---|---|
StatefulRetryOperationsInterceptor |
build() |
RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder |
keyGenerator(MethodArgumentsKeyGenerator keyGenerator) |
RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder |
maxAttempts(int maxAttempts)
Apply the max attempts - a SimpleRetryPolicy will be used.
|
RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder |
recoverer(MethodInvocationRecoverer<?> recoverer)
Apply a
MethodInvocationRecoverer for the Retry interceptor. |
RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder |
retryOperations(RetryOperations retryOperations)
Apply the retry operations - once this is set, other properties can no longer be
set; can't be set if other properties have been applied.
|
RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder |
retryPolicy(RetryPolicy policy)
Apply the retry policy - cannot be used if a custom retry template has been
provided, or the max attempts or back off options or policy have been applied.
|
backOffOptions, backOffPolicy, circuitBreaker, label, stateful, stateless
public RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder retryOperations(RetryOperations retryOperations)
RetryInterceptorBuilder
retryOperations
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
retryOperations
- The retry operations.public RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder maxAttempts(int maxAttempts)
RetryInterceptorBuilder
maxAttempts
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
maxAttempts
- the max attempts (including the initial attempt).public RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder retryPolicy(RetryPolicy policy)
RetryInterceptorBuilder
retryPolicy
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
policy
- The policy.public RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder keyGenerator(MethodArgumentsKeyGenerator keyGenerator)
public RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder recoverer(MethodInvocationRecoverer<?> recoverer)
RetryInterceptorBuilder
MethodInvocationRecoverer
for the Retry interceptor.recoverer
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
recoverer
- The recoverer.public StatefulRetryOperationsInterceptor build()
build
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
Copyright © 2018 SpringSource. All rights reserved.