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

com.evolutiongaming.kafka.journal.JournalReadWrite.scala Maven / Gradle / Ivy

The newest version!
package com.evolutiongaming.kafka.journal

import com.evolutiongaming.kafka.journal.conversions.{KafkaRead, KafkaWrite}
import com.evolutiongaming.kafka.journal.eventual.EventualRead

final case class JournalReadWrite[F[_], A](
  kafkaRead: KafkaRead[F, A],
  kafkaWrite: KafkaWrite[F, A],
  eventualRead: EventualRead[F, A])

object JournalReadWrite {

  def of[F[_], A](implicit
    kafkaRead: KafkaRead[F, A],
    kafkaWrite: KafkaWrite[F, A],
    eventualRead: EventualRead[F, A]
  ): JournalReadWrite[F, A] = {
    JournalReadWrite(kafkaRead, kafkaWrite, eventualRead)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy