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

com.itv.bucky.consume.Consumer.scala Maven / Gradle / Ivy

package com.itv.bucky.consume

import com.itv.bucky.{MessagePropertiesConverters, Payload}
import com.rabbitmq.client.AMQP.BasicProperties
import com.rabbitmq.client.Envelope
import com.typesafe.scalalogging.StrictLogging

object Consumer extends StrictLogging {

  def deliveryFrom(tag: String, envelope: Envelope, properties: BasicProperties, body: Array[Byte]) =
    Delivery(Payload(body), ConsumerTag(tag), MessagePropertiesConverters(envelope), MessagePropertiesConverters(properties))

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy