package de.juplo.kafka.wordcount.top10;
-import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.clients.consumer.ConsumerConfig;
import org.apache.kafka.streams.StreamsConfig;
@Bean(initMethod = "start", destroyMethod = "stop")
public Top10StreamProcessor streamProcessor(
Top10ApplicationProperties applicationProperties,
- ObjectMapper objectMapper,
Properties streamProcessorProperties,
ConfigurableApplicationContext context)
{
Top10StreamProcessor streamProcessor = new Top10StreamProcessor(
applicationProperties.getInputTopic(),
applicationProperties.getOutputTopic(),
- objectMapper,
streamProcessorProperties);
streamProcessor.streams.setUncaughtExceptionHandler((Throwable e) ->