public int getCurrentConsumerCount()

in src/main/java/com/google/cloud/run/kafkascaler/Kafka.java [68:74]


  public int getCurrentConsumerCount(String consumerGroupId)
      throws InterruptedException, ExecutionException {
    ConsumerGroupDescription consumerGroupDescription =
        adminClient.describeConsumerGroup(consumerGroupId);

    return consumerGroupDescription == null ? 0 : consumerGroupDescription.members().size();
  }