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

io.github.clescot.kafka.connect.http.sink.OkHttpSinkTask Maven / Gradle / Ivy

The newest version!
package io.github.clescot.kafka.connect.http.sink;

import io.github.clescot.kafka.connect.http.client.okhttp.OkHttpClientFactory;
import io.github.clescot.kafka.connect.http.sink.publish.KafkaProducer;
import okhttp3.Request;
import okhttp3.Response;
import org.apache.kafka.clients.producer.MockProducer;

public class OkHttpSinkTask extends HttpSinkTask {

    public OkHttpSinkTask() {
        super(new OkHttpClientFactory(), new KafkaProducer<>());
    }

    protected OkHttpSinkTask(MockProducer mockProducer) {
        super(new OkHttpClientFactory(),new KafkaProducer<>(mockProducer));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy