Class KafkaClusterBasedRecordThrottler
java.lang.Object
com.linkedin.davinci.kafka.consumer.KafkaClusterBasedRecordThrottler
This class is used to throttle records consumed per Kafka cluster
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
Map<PubSubTopicPartition, List<PubSubMessage<KafkaKey, KafkaMessageEnvelope, Long>>>> -
Constructor Summary
ConstructorDescriptionKafkaClusterBasedRecordThrottler
(Map<String, EventThrottler> kafkaUrlToRecordsThrottler) -
Method Summary
Modifier and TypeMethodDescriptionpoll
(PubSubConsumerAdapter consumer, String kafkaUrl, long pollTimeoutMs)
-
Field Details
-
kafkaUrlToThrottledRecords
protected Map<String,Map<PubSubTopicPartition, kafkaUrlToThrottledRecordsList<PubSubMessage<KafkaKey, KafkaMessageEnvelope, Long>>>>
-
-
Constructor Details
-
KafkaClusterBasedRecordThrottler
-
-
Method Details
-
poll
public Map<PubSubTopicPartition,List<PubSubMessage<KafkaKey, pollKafkaMessageEnvelope, Long>>> (PubSubConsumerAdapter consumer, String kafkaUrl, long pollTimeoutMs)
-