-
Notifications
You must be signed in to change notification settings - Fork 532
Closed
Milestone
Description
Summary
I noted this while using the RetryTemplateBuilder.
It would be nice to support list parameter like RetryTopicConfigurationBuilder in spring-kafka
Sample
public RetryTemplateBuilder notRetryOn(List<Class<? extends Throwable>> throwables) {
for (final Class<? extends Throwable> throwable : throwables) {
classifierBuilder().notRetryOn(throwable);
}
return this;
}
public RetryTemplateBuilder retryOn(List<Class<? extends Throwable>> throwables) {
for (final Class<? extends Throwable> throwable : throwables) {
classifierBuilder().retryOn(throwable);
}
return this;
}