Class ApacheKafkaCommitterConfig
java.lang.Object
com.norconex.committer.core.BaseCommitterConfig
com.norconex.committer.core.batch.BaseBatchCommitterConfig
com.norconex.committer.apachekafka.ApacheKafkaCommitterConfig
Configuration for ApacheKafkaCommitter.
- Author:
- Harinder Hanjan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe Apache Kafka broker list, comma-separated (e.g., host1:port1,host2:port2,...).intThe number of partitions for the new topic.shortGets the replication factor for the new topic.The topic name to which documents will be sentinthashCode()booleanWhether to create the topic in Apache Kafka.setBootstrapServers(String bootstrapServers) The Apache Kafka broker list, comma-separated (e.g., host1:port1,host2:port2,...).setCreateTopic(boolean createTopic) Whether to create the topic in Apache Kafka.setPartitions(int partitions) The number of partitions for the new topic.setReplicationFactor(short replicationFactor) Gets the replication factor for the new topic.setTopicName(String topicName) The topic name to which documents will be senttoString()Methods inherited from class com.norconex.committer.core.batch.BaseBatchCommitterConfig
getQueue, setQueueMethods inherited from class com.norconex.committer.core.BaseCommitterConfig
addRestriction, addRestrictions, clearFieldMappings, clearRestrictions, getFieldMappings, getRestrictions, removeFieldMapping, removeRestriction, removeRestriction, setFieldMapping, setFieldMappings
-
Constructor Details
-
ApacheKafkaCommitterConfig
public ApacheKafkaCommitterConfig()
-
-
Method Details
-
getTopicName
The topic name to which documents will be sent -
getBootstrapServers
The Apache Kafka broker list, comma-separated (e.g., host1:port1,host2:port2,...). -
isCreateTopic
public boolean isCreateTopic()Whether to create the topic in Apache Kafka. It will be created only if it is not already present. -
getPartitions
public int getPartitions()The number of partitions for the new topic. Required ifisCreateTopic()istrue -
getReplicationFactor
public short getReplicationFactor()Gets the replication factor for the new topic. Required ifisCreateTopic()istrue -
setTopicName
The topic name to which documents will be sent- Returns:
this.
-
setBootstrapServers
The Apache Kafka broker list, comma-separated (e.g., host1:port1,host2:port2,...).- Returns:
this.
-
setCreateTopic
Whether to create the topic in Apache Kafka. It will be created only if it is not already present.- Returns:
this.
-
setPartitions
The number of partitions for the new topic. Required ifisCreateTopic()istrue- Returns:
this.
-
setReplicationFactor
Gets the replication factor for the new topic. Required ifisCreateTopic()istrue- Returns:
this.
-
equals
- Overrides:
equalsin classBaseBatchCommitterConfig
-
canEqual
- Overrides:
canEqualin classBaseBatchCommitterConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classBaseBatchCommitterConfig
-
toString
- Overrides:
toStringin classBaseBatchCommitterConfig
-