Class ExternalTaskTriggerTopicConsumer
java.lang.Object
io.taktx.client.ExternalTaskTriggerTopicConsumer
A Kafka consumer that subscribes to external task trigger topics and processes incoming messages
using the provided ExternalTaskTriggerConsumer.
-
Method Summary
Modifier and TypeMethodDescriptionvoidstop()Stops all running consumers and waits for them to finish processing.voidsubscribeToExternalTaskTriggerTopics(ExternalTaskTriggerConsumer externalTaskTriggerConsumer, String groupId) Subscribe to external task trigger topics based on job IDs from the provided consumer.
-
Method Details
-
subscribeToExternalTaskTriggerTopics
public void subscribeToExternalTaskTriggerTopics(ExternalTaskTriggerConsumer externalTaskTriggerConsumer, String groupId) Subscribe to external task trigger topics based on job IDs from the provided consumer.- Parameters:
externalTaskTriggerConsumer- the consumer to handle incoming ExternalTaskTriggerDTO messagesgroupId- the Kafka consumer group ID to use for this subscription
-
stop
public void stop()Stops all running consumers and waits for them to finish processing.
-