All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.epam.eco.kafkamanager.ui.config.producer.KafkaKmUiProducer Maven / Gradle / Ivy

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) {}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy