@Override
    public int inFlightRequestCount() {
        return this.inFlightRequests.count();
    }
Get the number of in-flight requests
clients/src/main/java/org/apache/kafka/clients/NetworkClient.java