50 - Spring Boot : Spring Retry | @Retryable | @Recover | Almighty Java

50 - Spring Boot : Spring Retry | @Retryable | @Recover | Almighty Java

Almighty Java

4 года назад

4,655 Просмотров

#SpringRetry #SpringBoot #Retryable #Recover #RetryTemplate

Retry Template
------------------------
The retry functionality was pulled out of Spring Batch as of 2.2.0. It is now part of a new library, Spring Retry.

To make processing more robust and less prone to failure, sometimes it helps to automatically retry a failed operation in case it might succeed on a subsequent attempt. Errors that are susceptible to this kind of treatment are transient in nature. For example, a remote call to a web service or RMI service that fails because of a network glitch or a DeadLockLoserException in a database update may resolve themselves after a short wait. To automate the retry of such operations Spring Batch has the RetryOperations strategy. The RetryOperations interface looks like this

Тэги:

#spring #spring_boot #spring_retry #spring_cloud #retry #java #aop #api #restcontroller #aspect #maxattempts #@recover #@retryable #@enableretry #rest #service #component #configuration #microservice #@restcontroller #spring_boot_retry #spring_framework_retry #spring_aop_tutorial #spring_retry_tutorial #spring_retry_example #retrytemplate #spring_framework #enableretry #how_to_spring_aop #how_to_spring #java_spring #scootering #программисты #программирование #javascript
Ссылки и html тэги не поддерживаются


Комментарии: