@RequiredArgsConstructor
@Slf4j
-public class ApplicationRebalanceListener implements CommittingConsumerRebalanceListener
+public class ApplicationRebalanceListener implements RebalanceListener
{
private final ApplicationRecordHandler recordHandler;
private final AdderResults adderResults;
+++ /dev/null
-package de.juplo.kafka;
-
-import org.apache.kafka.clients.consumer.ConsumerRebalanceListener;
-
-
-public interface CommittingConsumerRebalanceListener extends ConsumerRebalanceListener
-{
- void enableCommits();
- void disableCommits();
-}
private final String id;
private final String topic;
private final Consumer<K, V> consumer;
- private final CommittingConsumerRebalanceListener rebalanceListener;
+ private final RebalanceListener rebalanceListener;
private final RecordHandler<K, V> recordHandler;
private final Lock lock = new ReentrantLock();
--- /dev/null
+package de.juplo.kafka;
+
+import org.apache.kafka.clients.consumer.ConsumerRebalanceListener;
+
+
+public interface RebalanceListener extends ConsumerRebalanceListener
+{
+ void enableCommits();
+ void disableCommits();
+}
@Autowired
MongoProperties mongoProperties;
@Autowired
- CommittingConsumerRebalanceListener rebalanceListener;
+ RebalanceListener rebalanceListener;
@Autowired
RecordHandler<K, V> recordHandler;