Top "Spring-retry" questions

Spring Retry provides an abstraction around retrying failed operations, with an emphasis on declarative control of the process and policy-based behaviour that is easy to extend and customize.

Springboot @retryable not retrying

The following code is not retrying. What am I missing? @EnableRetry @SpringBootApplication public class App implements CommandLineRunner { ......... ......... @Retryable() ResponseEntity<…

java spring maven spring-boot spring-retry
How can I make spring @retryable configurable?

I have this piece of code @Retryable(maxAttempts = 3, stateful = true, include = ServiceUnavailableException.class, exclude = URISyntaxException.class, backoff = @Backoff(delay = 1000, multiplier = 2) ) …

java spring spring-retry
Feign client and Spring retry

I have a restful service calling an external service using Spring Cloud Feign client @FeignClient(name = "external-service", configuration = FeignClientConfig.class) …

spring spring-boot spring-cloud spring-cloud-feign spring-retry
Spring @Retryable - how to log when it is invoked?

I use compile 'org.springframework.retry:spring-retry:1.2.2.RELEASE'with Spring Boot 1.5.9.RELEASE. Configured to retry my method and it works well: @…

spring spring-boot spring-retry
@Recover methods are not triggered with @Retryable

I followed this question after getting ExhaustedRetryException on @Retryable function. The @Retryable function is retrying. Here's the Delegate with the @…

spring spring-retry
Spring's @Retryable not working when running JUnit Test

I have this test: @RunWith(MockitoJUnitRunner.class) public class myServiceTest { @InjectMocks myService subject; private myService spy; @Before public void before() { …

java spring maven junit spring-retry
Trying to exclude an exception using @Retryable - causes ExhaustedRetryException to be thrown

I'm trying to use @Retryable on a method that calls the REST template. If an error is returned due to …

java spring groovy spring-retry
How to inject config properties in Spring Boot to Spring Retry annotation?

In spring boot application, I define some config properties in yaml file as below. my.app.maxAttempts = 10 my.app.backOffDelay = 500…

java spring spring-boot spring-retry
Specifying an exception-specific backoff policy with Spring-Retry

I am using Spring-Retry for some database operations. On a SQLRecoverableException I retry three times (this assumes that whatever is …

java spring exception-handling spring-retry
Spring Retry: method annotated with @Recover not being called

I am testing a spring retry, but it seems the recover is not being called. Tried to get it work …

java spring-boot aop spring-retry