@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) ->