public interface KafkaConsumerConfigurer
KafkaSimpleApiConsumer.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_FETCH_SIZE
Default message fetch size in bytes when making Kafka fetch request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTopicPartition(String topic,
int partition)
Adds a topic partition to consume message from.
|
void |
addTopicPartition(String topic,
int partition,
int fetchSize)
Adds a topic partition to consumer message from, using the given fetch size for each fetch request.
|
static final int DEFAULT_FETCH_SIZE
void addTopicPartition(String topic, int partition)
addTopicPartition(topic, partition, DEFAULT_FETCH_SIZE)topic - name of the Kafka topicpartition - partition numbervoid addTopicPartition(String topic, int partition, int fetchSize)
topic - name of the Kafka topicpartition - partition numberfetchSize - maximum number of bytes to fetch per requestCopyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.