@Documented @Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface KafkaListener
StreamBuilder
or ConsumerListener
with this annotation, the
specified topics will be automatically subscribed to. The Kafka consumer will be automatically started and stopped.
If an exception is rethrown by the listener, the Kafka client will be stopped gracefully. A retry will be scheduled
after the specified retry delay.Modifier and Type | Required Element and Description |
---|---|
String |
value |
Modifier and Type | Optional Element and Description |
---|---|
int |
retryDelay |
String |
topicPattern
Defines the regular expression pattern of the topic(s) to subscribe to.
|
String[] |
topics |
Copyright © 2013-2018–2019 SeedStack. All rights reserved.