Package io.micronaut.nats.annotation
Annotation Interface NatsListener
Class level annotation to indicate that a bean will be consumer of messages.
- Since:
- 1.0.0
- Author:
- jgrimm
-
Optional Element Summary
-
Element Details
-
connection
- Returns:
- The connection to use
- See Also:
- Default:
- ""
-
queue
String queue- Returns:
- the queue of the consumer
- Default:
- ""
-
clientId
String clientIdSets the client id of the Nats consumer. If not specified the client id is configured to be the value ofApplicationConfiguration.getName()
.- Returns:
- The client id
- Since:
- 3.1.0
- Default:
- ""
-