FrankYang0529 commented on code in PR #17199:
URL: https://github.com/apache/kafka/pull/17199#discussion_r1858276205


##########
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkThread.java:
##########
@@ -60,21 +61,24 @@ public class ConsumerNetworkThread extends KafkaThread 
implements Closeable {
     private final Supplier<ApplicationEventProcessor> 
applicationEventProcessorSupplier;
     private final Supplier<NetworkClientDelegate> 
networkClientDelegateSupplier;
     private final Supplier<RequestManagers> requestManagersSupplier;
+    private final Optional<KafkaAsyncConsumerMetrics> 
kafkaAsyncConsumerMetrics;
     private ApplicationEventProcessor applicationEventProcessor;
     private NetworkClientDelegate networkClientDelegate;
     private RequestManagers requestManagers;
     private volatile boolean running;
     private final IdempotentCloser closer = new IdempotentCloser();
     private volatile Duration closeTimeout = 
Duration.ofMillis(DEFAULT_CLOSE_TIMEOUT_MS);
     private volatile long cachedMaximumTimeToWait = MAX_POLL_TIMEOUT_MS;
+    private long lastPollTimeMs = 0L;
 
     public ConsumerNetworkThread(LogContext logContext,
                                  Time time,
                                  BlockingQueue<ApplicationEvent> 
applicationEventQueue,
                                  CompletableEventReaper applicationEventReaper,
                                  Supplier<ApplicationEventProcessor> 
applicationEventProcessorSupplier,
                                  Supplier<NetworkClientDelegate> 
networkClientDelegateSupplier,
-                                 Supplier<RequestManagers> 
requestManagersSupplier) {
+                                 Supplier<RequestManagers> 
requestManagersSupplier,
+                                 Optional<KafkaAsyncConsumerMetrics> 
kafkaAsyncConsumerMetrics) {

Review Comment:
   Updated it. Thanks.



-- 
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

Reply via email to