Annotation Interface Subscription
@Documented
@Retention(RUNTIME)
@Target(METHOD)
@Inherited
@Executable
public @interface Subscription
Represents a PubSub subscription. Methods annotated with this annotation
 will be invoked when a new message is received by a 
MessageReceiver
 that is bound to the annotated method.- Since:
- 2.0
- Author:
- Vinicius Carvalho
- 
Required Element SummaryRequired Elements
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionDefines the name of a particular configuration used for a Subscriber.Defines the Content-Type to be used for message deserialization.
- 
Element Details- 
value@AliasFor(annotation=io.micronaut.messaging.annotation.MessageMapping.class, member="value") String valueThe name of the subscription, it could be a simple name such as "animals" or a FQN such asprojects/<project_name>/subscriptions/<subscription_name>.- Returns:
- the subscription name
 
 
- 
- 
- 
contentTypeString contentTypeDefines the Content-Type to be used for message deserialization. Defaults to application/json.- Returns:
- contentType to use
 - Default:
- "application/json"
 
- 
configurationString configurationDefines the name of a particular configuration used for a Subscriber. Configurations can be set via gcp.pubsub.subscriber.*- Returns:
- configuration name to use for Subscriber
 - Default:
- ""
 
 
-