-
Notifications
You must be signed in to change notification settings - Fork 505
New issue
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
Nice to have: notRetryOn() and retryOn() in RetryTemplateBuilder #254
Comments
…tryTemplateBuilder Fixes spring-projects#254 Add method with list parameter by overloading existed method
As @garyrussell has marked this issue , the contribution is welcome! While looking into this, I wonder why list, why not varargs? |
…() in RetryTemplateBuilder" This reverts commit b9dffcf.
…tryTemplateBuilder Fixes spring-projects#254 Add method with list parameter by overloading existed method
Using varargs is much simpler, but with a warning message... "Unchecked generics array creation for varargs parameter" |
That's true.
And the warn is gone. |
That's a cool idea.!! Let's change from List to varargs. |
Although it might be a breaking change for the existing |
SafeVarargs annotation is API available from 1.7 or later.... 😂 |
Yeah... As long as I remember the Thank you! |
Hi @garyrussell , @artembilan is this open for the greb ? |
Thanks for the great ideas.!! |
…tryTemplateBuilder Fixes spring-projects#254 Add method with list parameter by overloading existed method
…tryTemplateBuilder Fixes spring-projects#254 Add method with list parameter by overloading existed method
Fixes #254 Add method with list parameter by overloading existed method
Summary
I noted this while using the RetryTemplateBuilder.
https://github.com/spring-projects/spring-retry/blob/main/src/main/java/org/springframework/retry/support/RetryTemplateBuilder.java#L285
It would be nice to support list parameter like RetryTopicConfigurationBuilder in spring-kafka
https://github.com/spring-projects/spring-kafka/blob/main/spring-kafka/src/main/java/org/springframework/kafka/retrytopic/RetryTopicConfigurationBuilder.java#L308
Sample
The text was updated successfully, but these errors were encountered: