philipnee commented on code in PR #12672: URL: https://github.com/apache/kafka/pull/12672#discussion_r998551146
########## clients/src/main/java/org/apache/kafka/clients/consumer/internals/events/EventHandler.java: ########## @@ -30,6 +30,14 @@ public interface EventHandler { */ Optional<BackgroundEvent> poll(); + /** + * Retrieves and removes a {@link BackgroundEvent}, waiting up to the {@code + * timeout} for an event to become available; + * @return an Optional of {@link BackgroundEvent} if the value is present + * . Otherwise, an empty Optional. + */ + Optional<BackgroundEvent> poll(Duration timeout); Review Comment: not at this moment, we can implement this once the use case is clear. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org