public class KafkaConsumerCallBridge010 extends KafkaConsumerCallBridge
KafkaConsumer#assign(java.util.Collection)
method.
This indirection is necessary, because Kafka broke binary compatibility between 0.9 and 0.10,
changing assign(List)
to assign(Collection)
.
Because of that, we need two versions whose compiled code goes against different method signatures.
Constructor and Description |
---|
KafkaConsumerCallBridge010() |
Modifier and Type | Method and Description |
---|---|
void |
assignPartitions(org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer,
List<org.apache.kafka.common.TopicPartition> topicPartitions) |
void |
seekPartitionToBeginning(org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer,
org.apache.kafka.common.TopicPartition partition) |
void |
seekPartitionToEnd(org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer,
org.apache.kafka.common.TopicPartition partition) |
public void assignPartitions(org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer, List<org.apache.kafka.common.TopicPartition> topicPartitions) throws Exception
assignPartitions
in class KafkaConsumerCallBridge
Exception
public void seekPartitionToBeginning(org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer, org.apache.kafka.common.TopicPartition partition)
seekPartitionToBeginning
in class KafkaConsumerCallBridge
public void seekPartitionToEnd(org.apache.kafka.clients.consumer.KafkaConsumer<?,?> consumer, org.apache.kafka.common.TopicPartition partition)
seekPartitionToEnd
in class KafkaConsumerCallBridge
Copyright © 2014–2018 The Apache Software Foundation. All rights reserved.