com.epam.eco.kafkamanager.ui.config.producer.KafkaKmUiProducer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-manager-ui Show documentation
Show all versions of kafka-manager-ui Show documentation
UI interface for managing Kafka
The newest version!
package com.epam.eco.kafkamanager.ui.config.producer;
import com.epam.eco.kafkamanager.KafkaKmProducer;
import com.epam.eco.kafkamanager.TopicRecordFetchParams;
import org.springframework.kafka.core.KafkaTemplate;
public class KafkaKmUiProducer extends KafkaKmProducer {
private final KafkaProducerType kafkaProducerType;
public KafkaKmUiProducer(TopicRecordFetchParams.DataFormat keyFormat,
TopicRecordFetchParams.DataFormat valueFormat,
KafkaTemplate kafkaTemplate) {
super(kafkaTemplate);
kafkaProducerType = new KafkaProducerType(keyFormat, valueFormat);
}
public KafkaProducerType getKafkaProducerType() {
return kafkaProducerType;
}
public record KafkaProducerType (
TopicRecordFetchParams.DataFormat keyFormat,
TopicRecordFetchParams.DataFormat valueFormat) {}
}