-
Notifications
You must be signed in to change notification settings - Fork 15
Handle wildcard parameter in Topic deletion API #443
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ThomasCAI-mlv Just one improvement, otherwise LGTM
| * | ||
| * @param topics The topics to delete | ||
| */ | ||
| public void deleteTopics(List<Topic> topics) throws InterruptedException, ExecutionException, TimeoutException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little improvement:
ns4kafka/src/main/java/com/michelin/ns4kafka/service/executor/TopicAsyncExecutor.java
Line 197 in ae3e5d9
| public void deleteTopic(Topic topic) throws InterruptedException, ExecutionException, TimeoutException { |
deleteTopics(List<Topics> topics) like
public void deleteTopic(Topic topic) {
deleteTopics(List.of(topic));
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, it is even better to completely remove the method and replace all usages by deleteTopics(List<Topic> topics).
What do you think?
| * @param dryrun Is dry run mode or not ? | ||
| * @param dryrun Is dry run mode or not? | ||
| * @return An HTTP response | ||
| * @deprecated use bulkDelete(String, String name, boolean) instead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{@link #bulkDelete(String, String, boolean)} better 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
|



No description provided.