Annotation Type 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
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String connection  
      java.lang.String value
      Should always be supplied when the annotation is applied to a method.
    • Element Detail

      • value

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