public abstract class CommonKafkaSpoutConfig<K,V> extends Object implements Serializable
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
CommonKafkaSpoutConfig.Builder<K,V,T extends CommonKafkaSpoutConfig.Builder<K,V,T>>  | 
| Modifier and Type | Field and Description | 
|---|---|
static FirstPollOffsetStrategy | 
DEFAULT_FIRST_POLL_OFFSET_STRATEGY  | 
static long | 
DEFAULT_PARTITION_REFRESH_PERIOD_MS  | 
static long | 
DEFAULT_POLL_TIMEOUT_MS  | 
static long | 
DEFAULT_START_TS  | 
static org.slf4j.Logger | 
LOG  | 
| Constructor and Description | 
|---|
CommonKafkaSpoutConfig(CommonKafkaSpoutConfig.Builder<K,V,?> builder)
Creates a new CommonKafkaSpoutConfig using a Builder. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
FirstPollOffsetStrategy | 
getFirstPollOffsetStrategy()  | 
Map<String,Object> | 
getKafkaProps()
Gets the properties that will be passed to the KafkaConsumer. 
 | 
long | 
getPartitionRefreshPeriodMs()  | 
long | 
getPollTimeoutMs()  | 
long | 
getStartTimeStamp()  | 
TopicFilter | 
getTopicFilter()  | 
ManualPartitioner | 
getTopicPartitioner()  | 
RecordTranslator<K,V> | 
getTranslator()  | 
String | 
toString()  | 
public static final long DEFAULT_POLL_TIMEOUT_MS
public static final long DEFAULT_PARTITION_REFRESH_PERIOD_MS
public static final long DEFAULT_START_TS
public static final FirstPollOffsetStrategy DEFAULT_FIRST_POLL_OFFSET_STRATEGY
public static final org.slf4j.Logger LOG
public CommonKafkaSpoutConfig(CommonKafkaSpoutConfig.Builder<K,V,?> builder)
Creates a new CommonKafkaSpoutConfig using a Builder.
builder - The Builder to construct the CommonKafkaSpoutConfig frompublic Map<String,Object> getKafkaProps()
Gets the properties that will be passed to the KafkaConsumer.
public TopicFilter getTopicFilter()
public ManualPartitioner getTopicPartitioner()
public RecordTranslator<K,V> getTranslator()
public FirstPollOffsetStrategy getFirstPollOffsetStrategy()
public long getPollTimeoutMs()
public long getPartitionRefreshPeriodMs()
public long getStartTimeStamp()
Copyright © 2020 The Apache Software Foundation. All rights reserved.