Annotation Interface PushSubscription


@Documented @Retention(RUNTIME) @Target(METHOD) @Inherited @Executable public @interface PushSubscription
Represents a PubSub Push 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:
5.4.0
Author:
Jeremy Grelle
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The name of the subscription, it could be a simple name such as "animals" or a FQN such as projects/<project_name>/subscriptions/<subscription_name>.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Defines the Content-Type to be used for message deserialization.
  • Element Details

    • value

      @AliasFor(annotation=io.micronaut.messaging.annotation.MessageMapping.class, member="value") String value
      The name of the subscription, it could be a simple name such as "animals" or a FQN such as projects/<project_name>/subscriptions/<subscription_name>.
      Returns:
      the subscription name
    • contentType

      String contentType
      Defines the Content-Type to be used for message deserialization. Defaults to application/json.
      Returns:
      contentType to use
      Default:
      "application/json"