We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We are using resilience4j with spring, but without the aop.
I would prefer if we could wire the things like the predicates in the java code, but keep stuff like maxAttempts configurable via yaml.
maxAttempts
currently the best I came up with is this:
@Bean Retry retry(RetryRegistry retryRegistry) { var retryConfig = RetryConfig.from(retryRegistry.retry("foo").getRetryConfig()) .retryOnException(new MyRetryPredicate()) .build(); return Retry.of("foo", retryConfig); }
Is there some a nicer way to do that?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We are using resilience4j with spring, but without the aop.
I would prefer if we could wire the things like the predicates in the java code, but keep stuff like
maxAttempts
configurable via yaml.currently the best I came up with is this:
Is there some a nicer way to do that?
The text was updated successfully, but these errors were encountered: