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