Annotation Type Topic
-
@Documented @Retention(RUNTIME) @Target(METHOD) public @interface Topic
Represents a pubsub topic to be used by classes annotated withPubSubClient
.- Since:
- 2.0.0
- Author:
- Vinicius Carvalho
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
Set the name of the topic used to publish messages.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
configuration
Defines the name of a particular configuration used for a Publisher.java.lang.String
contentType
Defines the Content-Type to be used for message serialization.java.lang.String
endpoint
Sets the endpoint that PubSub will use to store messages.
-
-
-
Element Detail
-
value
@AliasFor(annotation=io.micronaut.messaging.annotation.MessageMapping.class, member="value") java.lang.String value
Set the name of the topic used to publish messages. Valid names are simple names such as "animals" or FQN names such asprojects/<project_name>/topics/<topic_name>
- Returns:
- The name of the topic to publish messages to
-
-