Package

com.spingo

op_rabbit

Permalink

package op_rabbit

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. op_rabbit
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Deserialized[T] = Either[ExtractRejection, T]

    Permalink
  2. type Directive1[T] = Directive[::[T, HNil]]

    Permalink
  3. type Handler = (Promise[ReceiveResult], Delivery) ⇒ Unit

    Permalink

Value Members

  1. object SprayJsonSupport

    Permalink

    To use this package, you must add 'op-rabbit-spray-json' to your dependencies.

    BATTERIES NOT INCLUDED

    To use this package, you must add 'op-rabbit-spray-json' to your dependencies.

    Overview

    Use implicit SprayJson formats for serialization by importing this object.

    Example:

    import spray.json.DefaultJsonProtocol
    import com.spingo.op_rabbit.SprayJsonSupport._
    
    object Example extends DefaultJsonProtocol {
      case class Person(name: String, age: Int)
      implicit val format = jsonFormat2(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")
    }
  2. val futureUnit: Future[Unit]

    Permalink
    Attributes
    protected

Inherited from AnyRef

Inherited from Any

Ungrouped