Package kalix.javasdk.annotations
Annotation Interface Subscribe.Topic
- Enclosing class:
- Subscribe
Annotation for subscribing to messages from a topic (i.e PubSub or Kafka topic).
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionAssign the consumer group name to be used on the broker.boolean
This option is only available for classes.
-
Element Details
-
value
String valueAssign the name of the topic to consume the stream from.
-
-
-
consumerGroup
String consumerGroupAssign the consumer group name to be used on the broker.- Default:
- ""
-
ignoreUnknown
boolean ignoreUnknownThis option is only available for classes. Using it in a method has no effect.When there is no method in the class whose input type matches the event type:
- if ignoreUnknown is true the event is discarded
- if false, an Exception is raised
- Default:
- false
-