Configuring UniformRandomBackOffPolicy for RetryTemplate (using RetryTemplateBuilder)

In this post under Spring Retry, I will show with example how to configure UniformRandomBackOffPolicy using RetryTemplateBuilder. But before that lets recap what is UniformRandomBackOffPolicy. UniformRandomBackOffPolicy chooses a random time in ms between user configured MinBackOffPeriod and MaxBackOffPeriod and then before a failed operations is retried, it pauses for that time. For our example we…… Continue reading Configuring UniformRandomBackOffPolicy for RetryTemplate (using RetryTemplateBuilder)

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)

Configuring TimeoutRetryPolicy for RetryTemplate (using RetryTemplateBuilder)

In this post under Spring Retry, I will show with example how to configure TimeoutRetryPolicy using RetryTemplateBuilder. Lets refresh what is TimeoutRetryPolicy. TimeoutRetryPolicy tells Spring retry to retry a failed operation as many times as possible before the timeout happens. Once timeout happens the Spring retry stopsretrying the failed operation. Now lets see how to…… Continue reading Configuring TimeoutRetryPolicy for RetryTemplate (using RetryTemplateBuilder)

Configuring MaxAttemptsRetryPolicy for RetryTemplate (using RetryTemplateBuilder)

In this post under Spring Retry, I will show with example how to configure MaxAttemptsRetryPolicy using RetryTemplateBuilder. Lets refresh what is MaxAttemptsRetryPolicy. MaxAttemptsRetryPolicy tells Spring retry to retry a failed operation for a fixed number of times. Now lets see how to configure using RetryTemplateBuilder. Below is the xml code for your reference XML Code…… Continue reading Configuring MaxAttemptsRetryPolicy for RetryTemplate (using RetryTemplateBuilder)