public class KafkaTridentSpoutConfig<K,V> extends CommonKafkaSpoutConfig<K,V>
Defines the required Kafka-related configuration for the Trident spouts.
Modifier and Type | Class and Description |
---|---|
static class |
KafkaTridentSpoutConfig.Builder<K,V> |
DEFAULT_FIRST_POLL_OFFSET_STRATEGY, DEFAULT_PARTITION_REFRESH_PERIOD_MS, DEFAULT_POLL_TIMEOUT_MS, DEFAULT_START_TS, LOG
Constructor and Description |
---|
KafkaTridentSpoutConfig(KafkaTridentSpoutConfig.Builder<K,V> builder) |
Modifier and Type | Method and Description |
---|---|
static KafkaTridentSpoutConfig.Builder<String,String> |
builder(String bootstrapServers,
Pattern topics)
Factory method that creates a Builder with String key/value deserializers.
|
static KafkaTridentSpoutConfig.Builder<String,String> |
builder(String bootstrapServers,
Set<String> topics)
Factory method that creates a Builder with String key/value deserializers.
|
static KafkaTridentSpoutConfig.Builder<String,String> |
builder(String bootstrapServers,
String... topics)
Factory method that creates a Builder with String key/value deserializers.
|
getFirstPollOffsetStrategy, getKafkaProps, getPartitionRefreshPeriodMs, getPollTimeoutMs, getStartTimeStamp, getTopicFilter, getTopicPartitioner, getTranslator, toString
public KafkaTridentSpoutConfig(KafkaTridentSpoutConfig.Builder<K,V> builder)
public static KafkaTridentSpoutConfig.Builder<String,String> builder(String bootstrapServers, String... topics)
Factory method that creates a Builder with String key/value deserializers.
bootstrapServers
- The bootstrap servers for the consumertopics
- The topics to subscribe topublic static KafkaTridentSpoutConfig.Builder<String,String> builder(String bootstrapServers, Set<String> topics)
Factory method that creates a Builder with String key/value deserializers.
bootstrapServers
- The bootstrap servers for the consumertopics
- The topics to subscribe topublic static KafkaTridentSpoutConfig.Builder<String,String> builder(String bootstrapServers, Pattern topics)
Factory method that creates a Builder with String key/value deserializers.
bootstrapServers
- The bootstrap servers for the consumertopics
- The topic pattern to subscribe toCopyright © 2019 The Apache Software Foundation. All rights reserved.