
org.frameworkset.plugin.kafka.KafkaConsumer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-plugin-kafka1x Show documentation
Show all versions of bboss-plugin-kafka1x Show documentation
hibernate plugin,word/pdf plugin
The newest version!
package org.frameworkset.plugin.kafka;
import kafka.consumer.KafkaStream;
public class KafkaConsumer extends BaseKafkaConsumer {
public KafkaConsumer() {
// this.topic = topic;
// props = new Properties();
// this.zookeeperConnect = zookeeperConnect;
// props.put("zookeeper.connect", this.zookeeperConnect);
// this.logstashService = logstashService;
//
//// props.put("zookeeper.connect", "localhost:2181");
//// props.put("zookeeper.connectiontimeout.ms", "30000");
// props.put("group.id","logstash");
// props.put("zookeeper.session.timeout.ms", "1000");
// props.put("zookeeper.sync.time.ms", "200");
// props.put("auto.commit.enable", true);
//
// props.put("auto.commit.interval.ms", "1000");
// props.put("auto.offset.reset", "smallest");
// props.put("application.id", "logstash_app");
//
// props.put("value.deserializer", org.apache.kafka.common.serialization.StringDeserializer.class);
// props.put("key.deserializer", org.apache.kafka.common.serialization.StringDeserializer.class);
}
@Override
protected Runnable buildRunnable(KafkaStream stream, String topic) {
// TODO Auto-generated method stub
return new KafkaConsumerThread(this,stream,storeService,topic);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy