Occurrent 0.16.3 is released with the following changes:

  • Added support to the retry module to execute retries with a function that takes an instance of org.occurrent.retry.RetryInfo. This is useful if you need to know the current state of your of the retry while retrying. For example:
    RetryStrategy retryStrategy = RetryStrategy
                                    .exponentialBackoff(initialDelay, maxDelay, 2.0)
                                    .maxAttempts(10)
    retryStrategy.execute(info -> {
          if (info.getNumberOfAttempts() > 2 &&  info.getNumberOfAttempts() < 6) {
              System.out.println("Number of attempts is between 3 and 5");
          }
          ...     
    });
    
  • Fixed bug in the retry module, in which error listeners where not called for the last error.
  • Upgraded jobrunr from 5.3.0 to 6.1.4
  • Upgraded Kotlin from 1.8.0 to 1.8.21
  • Upgraded Jackson from 2.14.1 to 2.14.3
  • Upgraded project reactor from 3.5.0 to 3.5.6
  • Upgraded to Spring Boot from 3.0.3 to 3.0.6
  • Upgraded to Spring from 6.0.6 to 6.0.9
  • Upgraded to Spring Data MongoDB from 4.0.0 to 4.0.6
  • Upgraded cloudevents from 2.4.1 to 2.4.2