Creates an instance of KafkaProducer
Kafka client configuration options
Optional
producerOptions: ProducerConfigKafka producer configuration options
Optional
interval: numberPeriod of health check interval
Return the producer of this class instance
Overall client state
Emitted when admin client can collect the desired information
Emitted when admin client can not collect the desired information
Emitted every time that admin client get metadata from brokers
Emitted when admin client has some problem getting the metadata from brokers
This client is based in the functionality of kafkajs for NodeJS. In the moment of implement the port, this library show some issues and not clear API about how the connection handshake and events are managed by the library, for this reason we decide to include an admin client in all the cases, even when we only want to stablish a consumer or producer.