79610012

Date: 2025-05-07 07:38:25
Score: 0.5
Natty:
Report link

You can try below annotation on doSomething() method:

@Retryable(retryFor = MyRetryableException.class, notRecoverable=JustGiveUpException.class, maxAttempts = 3, backoff = @Backoff(delay = 2000))

Most probably, the spring-retry version that you are using, requires "notRecoverable" attribute to specify the Exception(s) which needs to be excluded from retry logic.

Hope it works.

Reasons:
  • Whitelisted phrase (-1): Hope it works
  • No code block (0.5):
  • Low reputation (1):
Posted by: user2791367