at.grahsl.kafka.connect.mongodb.writemodel.strategy.WriteModelStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kafka-connect-mongodb Show documentation
Show all versions of kafka-connect-mongodb Show documentation
A Kafka connect MongoDB sink connector.
The newest version!
package at.grahsl.kafka.connect.mongodb.writemodel.strategy;
import at.grahsl.kafka.connect.mongodb.converter.SinkDocument;
import com.mongodb.client.model.WriteModel;
import org.apache.kafka.connect.sink.SinkRecord;
import org.bson.BsonDocument;
public interface WriteModelStrategy {
WriteModel createWriteModel(SinkDocument document);
default WriteModel createWriteModel(SinkDocument document, SinkRecord record) {
return createWriteModel(document);
}
}