public class KafkaSpoutConfig<K,V> extends Object implements Serializable
KafkaSpoutConfig defines the required configuration to connect a consumer to a consumer group, as well as the subscribing topics
Modifier and Type | Class and Description |
---|---|
static class |
KafkaSpoutConfig.Builder<K,V> |
static interface |
KafkaSpoutConfig.Consumer |
static class |
KafkaSpoutConfig.FirstPollOffsetStrategy
The offset used by the Kafka spout in the first poll to Kafka broker.
|
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_RETRIES |
static int |
DEFAULT_MAX_UNCOMMITTED_OFFSETS |
static long |
DEFAULT_OFFSET_COMMIT_PERIOD_MS |
static long |
DEFAULT_POLL_TIMEOUT_MS |
Modifier and Type | Method and Description |
---|---|
String |
getConsumerGroupId() |
KafkaSpoutConfig.FirstPollOffsetStrategy |
getFirstPollOffsetStrategy() |
Map<String,Object> |
getKafkaProps() |
KafkaSpoutStreams |
getKafkaSpoutStreams() |
org.apache.kafka.common.serialization.Deserializer<K> |
getKeyDeserializer() |
int |
getMaxTupleRetries() |
int |
getMaxUncommittedOffsets() |
long |
getOffsetsCommitPeriodMs() |
long |
getPollTimeoutMs() |
KafkaSpoutRetryService |
getRetryService() |
List<String> |
getSubscribedTopics() |
Pattern |
getTopicWildcardPattern() |
KafkaSpoutTuplesBuilder<K,V> |
getTuplesBuilder() |
org.apache.kafka.common.serialization.Deserializer<V> |
getValueDeserializer() |
boolean |
isConsumerAutoCommitMode() |
String |
toString() |
public static final long DEFAULT_POLL_TIMEOUT_MS
public static final long DEFAULT_OFFSET_COMMIT_PERIOD_MS
public static final int DEFAULT_MAX_RETRIES
public static final int DEFAULT_MAX_UNCOMMITTED_OFFSETS
public org.apache.kafka.common.serialization.Deserializer<K> getKeyDeserializer()
public org.apache.kafka.common.serialization.Deserializer<V> getValueDeserializer()
public long getPollTimeoutMs()
public long getOffsetsCommitPeriodMs()
public boolean isConsumerAutoCommitMode()
public String getConsumerGroupId()
public List<String> getSubscribedTopics()
KafkaSpoutStream
, or null if this stream is associated with a wildcard pattern topicpublic Pattern getTopicWildcardPattern()
KafkaSpoutStream
, or null if this stream is associated with a specific named topicpublic int getMaxTupleRetries()
public KafkaSpoutConfig.FirstPollOffsetStrategy getFirstPollOffsetStrategy()
public KafkaSpoutStreams getKafkaSpoutStreams()
public int getMaxUncommittedOffsets()
public KafkaSpoutTuplesBuilder<K,V> getTuplesBuilder()
public KafkaSpoutRetryService getRetryService()
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.