</parent>
<groupId>de.juplo.kafka.wordcount</groupId>
<artifactId>counter</artifactId>
- <version>1.1.8</version>
+ <version>1.1.9</version>
<name>Wordcount-Counter</name>
<description>Word-counting stream-processor of the multi-user wordcount-example</description>
<properties>
@Slf4j
public class CounterApplication
{
- @Bean(initMethod = "start", destroyMethod = "stop")
- public CounterStreamProcessor streamProcessor(
- CounterApplicationProperties properties,
- KeyValueBytesStoreSupplier storeSupplier,
- ObjectMapper objectMapper,
- ConfigurableApplicationContext context)
+ @Bean
+ public Properties propertyMap(CounterApplicationProperties properties)
{
Properties propertyMap = new Properties();
propertyMap.put(StreamsConfig.CACHE_MAX_BYTES_BUFFERING_CONFIG, properties.getCacheMaxBytes());
propertyMap.put(ConsumerConfig.AUTO_OFFSET_RESET_CONFIG, "earliest");
+ return propertyMap;
+ }
+
+ @Bean(initMethod = "start", destroyMethod = "stop")
+ public CounterStreamProcessor streamProcessor(
+ CounterApplicationProperties properties,
+ Properties propertyMap,
+ KeyValueBytesStoreSupplier storeSupplier,
+ ObjectMapper objectMapper,
+ ConfigurableApplicationContext context)
+ {
CounterStreamProcessor streamProcessor = new CounterStreamProcessor(
properties.getInputTopic(),
properties.getOutputTopic(),