public class KafkaTridentSpoutConfig<K,V> extends CommonKafkaSpoutConfig<K,V>
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)
bootstrapServers
- The bootstrap servers for the consumertopics
- The topics to subscribe topublic static KafkaTridentSpoutConfig.Builder<String,String> builder(String bootstrapServers, Set<String> topics)
bootstrapServers
- The bootstrap servers for the consumertopics
- The topics to subscribe topublic static KafkaTridentSpoutConfig.Builder<String,String> builder(String bootstrapServers, Pattern topics)
bootstrapServers
- The bootstrap servers for the consumertopics
- The topic pattern to subscribe toCopyright © 2023 The Apache Software Foundation. All rights reserved.