Package io.dapr

Annotation Type Topic


@Documented
@Target(METHOD)
@Retention(RUNTIME)
public @interface Topic
  • Required Element Summary

    Required Elements 
    Modifier and Type Required Element Description
    String name
    Name of topic to be subscribed to.
    String pubsubName
    Name of the pubsub bus to be subscribed to.
  • Optional Element Summary

    Optional Elements 
    Modifier and Type Optional Element Description
    String metadata
    Metadata in the form of a json object.
  • Element Details

    • name

      String name
      Name of topic to be subscribed to.
      Returns:
      Topic's name.
    • pubsubName

      String pubsubName
      Name of the pubsub bus to be subscribed to.
      Returns:
      pubsub bus's name.
    • metadata

      String metadata
      Metadata in the form of a json object. { "mykey": "myvalue" }
      Returns:
      metadata object
      Default:
      "{}"