Package io.micronaut.nats.annotation
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
- 
Optional Element SummaryOptional Elements
- 
Element Details- 
value@AliasFor(annotation=io.micronaut.messaging.annotation.MessageMapping.class, member="value") String value- Returns:
- The subject to subscribe to.
 - Default:
- ""
 
- 
connection- Returns:
- The connection to use
- See Also:
 - Default:
- ""
 
- 
queue- Returns:
- the queue of the consumer
 - Default:
- ""
 
 
-