Annotation Interface Topic


@Documented @Retention(RUNTIME) @Target({TYPE,METHOD,PARAMETER}) @Repeatable(Topics.class) @Bindable @Executable @Inherited public @interface Topic
Used for binding the message topic and other parameters. Use multiple annotations to subscribe to multiple topics. When used on a subscriber, any topic annotations from the class level will be used in addition to any annotations found on the method level. Only one instance of the annotation can be applied to publishers because publishers cannot publish to multiple topics.
Since:
1.0.0
Author:
James Kleeh
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
     
     
  • Element Details

    • value

      @AliasFor(annotation=io.micronaut.messaging.annotation.MessageMapping.class, member="value") String value
      Returns:
      The topic to subscribe to
      Default:
      ""
    • qos

      int qos
      Default:
      1