Object/Trait

com.spingo.op_rabbit

Directives

Related Docs: trait Directives | package op_rabbit

Permalink

object Directives extends Directives

Convenience object and recommended way for bringing the directives in scope. See Directives trait.

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

Type Members

  1. case class Ackable(handler: Handler) extends Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Ackable extends (Handler) ⇒ Ackable with Serializable

    Permalink
  5. def ack: Handler

    Permalink
    Definition Classes
    Directives
  6. def ack(f: Ackable): Handler

    Permalink

    Ack the message

    Ack the message

    Examples:

    ack()
    
    ack(Future {
      //Some work
    })

    Note that in the case of acking with a Future, if the Future fails, then the message is counted as erroneous, and the RecoveryStrategy is use is applied.

    Definition Classes
    Directives
  7. def as[T](implicit um: RabbitUnmarshaller[T]): RabbitUnmarshaller[T]

    Permalink
    Definition Classes
    Directives
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def body[T](um: RabbitUnmarshaller[T]): Directive1[T]

    Permalink

    Extract the message body.

    Extract the message body. Uses a RabbitUnmarshaller to deserialize.

    Example:

    body(as[JobDescription])
    Definition Classes
    Directives
  10. def channel(qos: Int = 1): ChannelDirective

    Permalink

    Declarative which declares a channel

    Declarative which declares a channel

    Definition Classes
    Directives
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def consume(binding: QueueDefinition[Concreteness], args: Seq[Header] = Seq(), consumerTagPrefix: Option[String] = None): BindingDirective

    Permalink

    Declarative which declares a consumer

    Declarative which declares a consumer

    Definition Classes
    Directives
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def exchange: Directive1[String]

    Permalink

    Directive which yields the exchange through which the message was published

    Directive which yields the exchange through which the message was published

    Definition Classes
    Directives
  16. def extract[T](map: (Delivery) ⇒ T): Directive1[T]

    Permalink

    Extract any arbitrary value from the delivery / Java RabbitMQ objects.

    Extract any arbitrary value from the delivery / Java RabbitMQ objects. Accepts a function which receives a Delivery and returns some value.

    Definition Classes
    Directives
  17. def extractEither[T](map: (Delivery) ⇒ Either[Rejection, T]): Directive1[T]

    Permalink

    Like extract, but the provided function should return an Either, with left for a rejection, right for success.

    Like extract, but the provided function should return an Either, with left for a rejection, right for success.

    Definition Classes
    Directives
  18. def fail(ex: Throwable): Handler

    Permalink

    Fail the given element

    Fail the given element

    Definition Classes
    Directives
  19. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hprovide[T <: HList](value: T): Directive[T]

    Permalink
    Definition Classes
    Directives
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isRedeliver: Directive1[Boolean]

    Permalink

    Directive which yields whether this message been delivered once before (although, not necessarily received)

    Directive which yields whether this message been delivered once before (although, not necessarily received)

    Definition Classes
    Directives
  25. def nack(requeue: Boolean = false): Handler

    Permalink

    Nack the message; does NOT trigger the RecoveryStrategy in use.

    Nack the message; does NOT trigger the RecoveryStrategy in use.

    Definition Classes
    Directives
  26. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  27. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def optionalProperty[T](extractor: PropertyExtractor[T]): Directive1[Option[T]]

    Permalink

    Given a property, yields Some(value).

    Given a property, yields Some(value). If the underlying value does not exist (is null), then it yields None.

    Definition Classes
    Directives
  30. def passive[T <: Exchange.Value](exchange: Exchange[T]): Exchange[T]

    Permalink
    Definition Classes
    Directives
  31. def passive[T <: Concreteness](queue: QueueDefinition[T]): QueueDefinition[T]

    Permalink

    Passive topic binding

    Passive topic binding

    Definition Classes
    Directives
  32. def pqueue(queue: String): QueueDefinition[Concrete]

    Permalink

    Passive queue binding

    Passive queue binding

    Definition Classes
    Directives
  33. def property[T](extractor: PropertyExtractor[T]): Directive1[T]

    Permalink

    Given a property, yields it's value.

    Given a property, yields it's value. If the underlying value does not exist (is null), then it nacks.

    Definition Classes
    Directives
  34. def provide[T](value: T): Directive[::[T, HNil]]

    Permalink

    Definition Classes
    Directives
  35. def queue(queue: String, durable: Boolean = true, exclusive: Boolean = false, autoDelete: Boolean = false): QueueDefinition[Concrete]

    Permalink

    Provides values for the consume directive.

    Provides values for the consume directive.

    Definition Classes
    Directives
  36. def routingKey: Directive1[String]

    Permalink

    Directive which yields the routingKey (topic) through which the message was published

    Directive which yields the routingKey (topic) through which the message was published

    Definition Classes
    Directives
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  39. def topic(queue: QueueDefinition[Concrete], topics: List[String], exchange: Exchange[Topic.type] = ...): Binding

    Permalink
    Definition Classes
    Directives
  40. def typeOf[T]: TypeHolder[T]

    Permalink
    Definition Classes
    Directives
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Directives

Inherited from AnyRef

Inherited from Any

Ungrouped