com.spingo.op_rabbit
To use this package, you must add 'op-rabbit-play-json' to your dependencies.
'op-rabbit-play-json'
Use implicit PlayJson formats for serialization by importing this object.
Example:
import play.api.libs.json._ import com.spingo.op_rabbit.PlayJsonSupport._ object Example { case class Person(name: String, age: Int) implicit val format = Json.format[Person] // Both of these can be implicitly created: // - implicitly[RabbitMarshaller[Person]] // - implicitly[RabbitUnmarshaller[Person]] val consumer = AsyncAckingConsumer[Person]("PurplePeopleEater") { person => Future { eat(person) } } val message = QueueMessage(Person("Bill", 25), "people-for-consumption") }
BATTERIES NOT INCLUDED
To use this package, you must add
'op-rabbit-play-json'
to your dependencies.Overview
Use implicit PlayJson formats for serialization by importing this object.
Example: