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

io.github.wooenrico.kafka.sender.DefaultReactorKafkaSender Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
package io.github.wooenrico.kafka.sender;

import org.apache.kafka.clients.producer.ProducerRecord;
import org.apache.kafka.common.serialization.StringSerializer;
import reactor.kafka.sender.SenderResult;

import java.util.function.Consumer;

public class DefaultReactorKafkaSender extends ProducerRecordReactorKafkaSender {

    public DefaultReactorKafkaSender(SenderProperties properties) {
        super(properties, new StringSerializer(), new StringSerializer());
    }

    public DefaultReactorKafkaSender(SenderProperties properties, Consumer>> senderResultConsumer) {
        super(properties, new StringSerializer(), new StringSerializer(), senderResultConsumer);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy