Annotation Interface NatsListener


@Documented @Retention(RUNTIME) @Target(TYPE) @MessageListener public @interface NatsListener
Class level annotation to indicate that a bean will be consumer of messages.
Since:
1.0.0
Author:
jgrimm
  • Element Details

    • connection

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

      String queue
      Returns:
      the queue of the consumer
      Default:
      ""
    • clientId

      String clientId
      Sets the client id of the Nats consumer. If not specified the client id is configured to be the value of ApplicationConfiguration.getName().
      Returns:
      The client id
      Since:
      3.1.0
      Default:
      ""