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

pl.touk.nussknacker.engine.kafka.generic.sinks.scala Maven / Gradle / Ivy

There is a newer version: 1.18.0
Show newest version
package pl.touk.nussknacker.engine.kafka.generic

import pl.touk.nussknacker.engine.api.LazyParameter
import pl.touk.nussknacker.engine.api.process.{Sink, TopicName}
import pl.touk.nussknacker.engine.kafka.serialization.KafkaSerializationSchema
import pl.touk.nussknacker.engine.kafka.sink.KafkaSinkImplFactory
import pl.touk.nussknacker.engine.kafka.sink.flink.FlinkKafkaSink
import pl.touk.nussknacker.engine.kafka.{KafkaConfig, PreparedKafkaTopic}

//TODO: Move it to sink package
object sinks {

  object FlinkKafkaSinkImplFactory extends KafkaSinkImplFactory {

    override def prepareSink(
        topic: PreparedKafkaTopic[TopicName.ForSink],
        value: LazyParameter[AnyRef],
        kafkaConfig: KafkaConfig,
        serializationSchema: KafkaSerializationSchema[AnyRef],
        clientId: String
    ): Sink =
      new FlinkKafkaSink(topic, value, kafkaConfig, serializationSchema, clientId)

  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy