co.cask.cdap.kafka.flow
Interface KafkaConsumerConfigurer

All Known Subinterfaces:
KafkaConfigurer

public interface KafkaConsumerConfigurer

This class is for configuring Kafka consumer information for KafkaConsumerFlowlet.


Field Summary
static int DEFAULT_FETCH_SIZE
          Default message fetch size in bytes when making Kafka fetch request.
 
Method Summary
 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.
 

Field Detail

DEFAULT_FETCH_SIZE

static final int DEFAULT_FETCH_SIZE
Default message fetch size in bytes when making Kafka fetch request.

See Also:
Constant Field Values
Method Detail

addTopicPartition

void addTopicPartition(String topic,
                       int partition)
Adds a topic partition to consume message from. Same as calling addTopicPartition(topic, partition, DEFAULT_FETCH_SIZE)

Parameters:
topic - name of the Kafka topic
partition - partition number

addTopicPartition

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.

Parameters:
topic - name of the Kafka topic
partition - partition number
fetchSize - maximum number of bytes to fetch per request


Copyright © 2015 Cask Data, Inc. Licensed under the Apache License, Version 2.0.