Annotation Interface Binding


@Documented @Retention(RUNTIME) @Target({METHOD,PARAMETER}) @Bindable @Inherited public @interface Binding
Used to specify which binding (routing key) messages should be sent to. Can be applied to a parameter for a dynamic value per execution.
Since:
1.1.0
Author:
James Kleeh
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
    Should always be supplied when the annotation is applied to a method.
  • Element Details

    • value

      @AliasFor(annotation=io.micronaut.messaging.annotation.MessageMapping.class, member="value") String value
      Should always be supplied when the annotation is applied to a method.
      Returns:
      The binding (routing key) to publish messages to.
      Default:
      ""
    • connection

      @AliasFor(annotation=RabbitConnection.class, member="connection") String connection
      Returns:
      The connection to use
      See Also:
      Default:
      ""