Class KafkaIngester.PartitionRoundRobin

java.lang.Object
io.deephaven.kafka.ingest.KafkaIngester.PartitionRoundRobin
All Implemented Interfaces:
IntPredicate
Enclosing class:
KafkaIngester

public static class KafkaIngester.PartitionRoundRobin extends Object implements IntPredicate
A predicate for evenly distributing partitions among a set of ingesters.
  • Constructor Details

    • PartitionRoundRobin

      public PartitionRoundRobin(int consumerIndex, int consumerCount)
      Creates a predicate for evenly distributing partitions among a set of ingesters.
      Parameters:
      consumerIndex - the index of this consumer; you should have precisely one ingester configured for each index between zero (inclusive) and consumerCount (exclusive)
      consumerCount - the number of consumers that will ingest this topic
  • Method Details