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

com.ubirch.kafka.consumer.ProcessResult.scala Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.ubirch.kafka.consumer

import java.util.UUID

import org.apache.kafka.clients.consumer.ConsumerRecord

/**
  * Represents the result that is expected result for the consumption.
  * This is helpful to return the consumer record and an identifiable record.
  * This type is usually extended to support customized data.
  *
  * @tparam K Represents the type of the Key for the consumer.
  * @tparam V Represents the type of the Value for the consumer.
  */
trait ProcessResult[K, V] {

  val id: UUID

  val consumerRecord: ConsumerRecord[K, V]

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy