Execute Kafka streams and pass a block of code that can operate while the streams are active.
Execute Kafka streams and pass a block of code that can operate while the streams are active. The code block can be used for publishing and consuming messages in Kafka.
the topics that should be created in Kafka before launching the streams.
the streams topology that will be used to instantiate the streams with a default configuration (all state directories are different and in temp folders)
additional KafkaStreams configuration (overwrite existing keys in default config)
the code block that will executed while the streams are active. Once the block has been executed the streams will be closed.
Run Kafka Streams while offering a String-based consumer.
Run Kafka Streams while offering a String-based consumer.
the topics that should be created. Usually these should be the topics that the stream use for inputs and outputs. They need to be created before running the streams and this is automatically taken care of.
the streams topology that will be instantiated
the block of code that will be executed by passing the simple String-based consumer.
Convenience trait exposing EmbeddedKafkaStreamsSupport.runStreams as well as Consumers api for easily creating and querying consumers.
EmbeddedKafkaStreamsSupport
Consumers