com.weicoder.kafka.factory.KafkaProducerFactory Maven / Gradle / Ivy
package com.weicoder.kafka.factory;
import com.weicoder.common.factory.FactoryKey;
import com.weicoder.kafka.producer.Producers;
/**
* kafka消费者工厂
* @author WD
*/
final class KafkaProducerFactory extends FactoryKey {
/** 工厂 */
final static KafkaProducerFactory FACTORY = new KafkaProducerFactory();
@Override
public Producers newInstance(String key) {
return new Producers(key);
}
private KafkaProducerFactory() {}
}