Annotation Interface Subject


@Documented @Retention(RUNTIME) @Target({METHOD,PARAMETER,TYPE}) @Bindable @Repeatable(Subjects.class) @Executable @MessageMapping @Inherited public @interface Subject
Used to specify which subject should be used for messages.
Since:
1.0.0
Author:
jgrimm
  • Element Details

    • value

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

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

      @AliasFor(annotation=NatsListener.class, member="queue") String queue
      Returns:
      the queue of the consumer
      Default:
      ""