public static class RetryInterceptorBuilder.StatefulRetryInterceptorBuilder extends RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
RetryInterceptorBuilder.CircuitBreakerInterceptorBuilder, RetryInterceptorBuilder.StatefulRetryInterceptorBuilder, RetryInterceptorBuilder.StatelessRetryInterceptorBuilder
label, recoverer, retryOperations, retryTemplate, simpleRetryPolicy
circuitBreaker, label, stateful, stateless
public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder keyGenerator(MethodArgumentsKeyGenerator keyGenerator)
keyGenerator
- The key generator.public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder newMethodArgumentsIdentifier(NewMethodArgumentsIdentifier newMethodArgumentsIdentifier)
newMethodArgumentsIdentifier
- The new item identifier.public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder rollbackFor(Classifier<? super Throwable,Boolean> rollbackClassifier)
rollbackClassifier
- The rollback classifier (return true for exceptions
that should be re-thrown).public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder retryOperations(RetryOperations retryOperations)
RetryInterceptorBuilder
retryOperations
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
retryOperations
- The retry operations.public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder maxAttempts(int maxAttempts)
RetryInterceptorBuilder
maxAttempts
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
maxAttempts
- the max attempts (including the initial attempt).public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder backOffOptions(long initialInterval, double multiplier, long maxInterval)
RetryInterceptorBuilder
backOffOptions
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
initialInterval
- The initial interval.multiplier
- The multiplier.maxInterval
- The max interval.public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder retryPolicy(RetryPolicy policy)
RetryInterceptorBuilder
retryPolicy
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
policy
- The policy.public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder backOffPolicy(BackOffPolicy policy)
RetryInterceptorBuilder
backOffPolicy
in class RetryInterceptorBuilder<StatefulRetryOperationsInterceptor>
policy
- The policy.public RetryInterceptorBuilder.StatefulRetryInterceptorBuilder 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.