Callback method which is executed after the injector is created and before any other lifecycle methods.
Callback method which is executed after the injector is created and before any other lifecycle methods.
Use the provided StreamsBuilder to create your KafkaStreams topology.
It is NOT expected that you block in this method as you will prevent completion of the server lifecycle.
Callback method which is executed after the injector is created and before KafkaStreams is configured.
Callback method which is executed after the injector is created and before KafkaStreams is configured.
Use the provided KafkaStreamsConfig and augment to configure your KafkaStreams topology.
Example:
override def streamsProperties(config: KafkaStreamsConfig): KafkaStreamsConfig = { super .streamsProperties(config) .retries(60) .retryBackoff(1.second) .consumer.sessionTimeout(10.seconds) .consumer.heartbeatInterval(1.second) .producer.retries(300) .producer.retryBackoff(1.second) .producer.requestTimeout(2.minutes) .producer.transactionTimeout(2.minutes) .producer.batchSize(500.kilobytes) }
the default KafkaStreamsConfig defined at createKafkaStreamsProperties
a KafkaStreamsConfig with your additional configurations applied.
This trait adds reservoir sampling DSL methods to the Kafka Streams DSL