projects
/
demos
/
kafka
/
training
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38bfee6
)
Fix: Der Rebalance-Listener wurde nie registriertgit diff
author
Kai Moritz
<kai@juplo.de>
Mon, 28 Oct 2024 09:50:00 +0000
(10:50 +0100)
committer
Kai Moritz
<kai@juplo.de>
Sat, 2 Nov 2024 08:43:13 +0000
(09:43 +0100)
src/main/java/de/juplo/kafka/ExampleConsumer.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/ExampleConsumer.java
b/src/main/java/de/juplo/kafka/ExampleConsumer.java
index
119badd
..
2ad0a93
100644
(file)
--- a/
src/main/java/de/juplo/kafka/ExampleConsumer.java
+++ b/
src/main/java/de/juplo/kafka/ExampleConsumer.java
@@
-69,7
+69,7
@@
public class ExampleConsumer implements Runnable, ConsumerRebalanceListener
done = new boolean[numPartitions];
log.info("{} - Subscribing to topic {}", id, topic);
- consumer.subscribe(Arrays.asList(topic));
+ consumer.subscribe(Arrays.asList(topic)
, this
);
running = true;
while (running)