Annotation Type RabbitListener


@Retention(CLASS) @Target(METHOD) public @interface RabbitListener
Spring AMQP's @RabbitListener, so a Spring listener ports by changing its import: the same as MessageListener, over whichever transport is configured. queues are the destinations; concurrency is a number of consumer threads, or min-max, of which the maximum is used.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Consumer threads, as n or min-max.
    Accepted and ignored: a listener's identity is its method.
    The queues.
  • Element Details

    • queues

      String[] queues
      The queues.
      Default:
      {}
    • concurrency

      String concurrency
      Consumer threads, as n or min-max.
      Default:
      ""
    • id

      String id
      Accepted and ignored: a listener's identity is its method.
      Default:
      ""