I am browsing in the docs and can see that there is functions that would be really useful, however going further I realized that they not existing anymore or I am wrong? I would like to perform a business logic based on exception type -> or in more details i would like to avoid retries if exception type of my customer one.
This is what i found in docs.spring.io
SimpleRetryPolicy policy = new SimpleRetryPolicy();
// Set the max retry attempts
policy.setMaxAttempts(5);
// Retry on all exceptions (this is the default)
policy.setRetryableExceptions(new Class[] {Exception.class});
// ... but never retry IllegalStateException
policy.setFatalExceptions(new Class[] {IllegalStateException.class});
Any suggestions would be appreciated, i do not want to use annotation @Retryble