io.github.wooenrico.kafka.sender.DefaultReactorKafkaSender Maven / Gradle / Ivy
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);
}
}