0

Is it possible to make use of spring-retry within dropwizard? Or, for that sake, is there something like spring-retry in dropwizard?

2 Answers2

0

Not sure of wha spring retry does, but for client retries, you can configure retries for HttpClient

httpClient:
  timeout: 500ms
  retries: 3

The number of times to retry failed requests. Requests are only retried if they throw an exception other than InterruptedIOException, UnknownHostException, ConnectException, or SSLException.

See Dropwizard documenation

Ôrel
  • 7,044
  • 3
  • 27
  • 46
0

From Spring Batch - Reference Documentation, 9. Retry:

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

Spring Retry can be used independently of other Spring projects.

e.g. In a Maven project you can simply add the following in your POM:

<dependency>
    <groupId>org.springframework.retry</groupId>
    <artifactId>spring-retry</artifactId>
    <version>1.1.5.RELEASE</version>
</dependency>
mfulton26
  • 29,956
  • 6
  • 64
  • 88