public void poll(Timer timer) {
        poll(timer, null);
    }
Poll for any network IO.
@param timer Timer bounding how long this method can block
@throws WakeupException if {@link #wakeup()} is called from another thread
@throws InterruptException if the calling thread is interrupted
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ConsumerNetworkClient.java