public class ApplicationConfiguration
{
@Bean
- public KeyCountingRecordHandler keyCountingRecordHandler()
+ public RecordHandler noopRecordHandler()
{
- return new KeyCountingRecordHandler();
+ return record -> {};
}
@Bean
public EndlessConsumer<String, Long> endlessConsumer(
KafkaConsumer<String, Long> kafkaConsumer,
ExecutorService executor,
- KeyCountingRecordHandler keyCountingRecordHandler,
+ RecordHandler noopRecordHandler,
ApplicationProperties properties)
{
return
properties.getClientId(),
properties.getTopic(),
kafkaConsumer,
- keyCountingRecordHandler);
+ noopRecordHandler);
}
@Bean