In this post, under Spring Retry I will show with example how to configure FixedBackOfPolicy using annotations. For our example we will use the below service class Service class 1 import java.util.Date; 2 3 import org.springframework.retry.annotation.Backoff; 4 import org.springframework.retry.annotation.Retryable; 5 import org.springframework.stereotype.Service; 6 7 @Service 8 public class Service13 { 9 private int i =…… Continue reading Configuring FixedBackOfPolicy (using annotations)
Tag: FixedBackOffPolicy
Configuring FixedBackOffPolicy for RetryTemplate (using RetryTemplateBuilder)
In this post under Spring Retry, I will show with example how to configure FixedBackOffPolicy using RetryTemplateBuilder. Before we start lets just recap what is BackOffPolicy and FixedBackOffPolicy. Backoff policies help us define different policies which will tell Spring Retry how long to wait before retrying a failed operation. FixedBackOffPolicy is one of the implmentations…… Continue reading Configuring FixedBackOffPolicy for RetryTemplate (using RetryTemplateBuilder)
FixedBackOffPolicy Simple Example (using xml configuration)
In this post under Spring Retry, I will explain backoff policy concept with example. In Spring Retry, when an operation fails, it is immediately retried but if you want Spring Retry to wait for some time before retrying, you can take help of backoff policies. Backoff policies help us define different policies which will tell…… Continue reading FixedBackOffPolicy Simple Example (using xml configuration)