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:
35e92c7
)
WIP
author
Kai Moritz
<kai@juplo.de>
Wed, 2 Nov 2022 17:55:06 +0000
(18:55 +0100)
committer
Kai Moritz
<kai@juplo.de>
Fri, 4 Nov 2022 11:52:13 +0000
(12:52 +0100)
src/main/java/de/juplo/kafka/SimpleConsumer.java
patch
|
blob
|
history
diff --git
a/src/main/java/de/juplo/kafka/SimpleConsumer.java
b/src/main/java/de/juplo/kafka/SimpleConsumer.java
index
72dc36e
..
49eca1a
100644
(file)
--- a/
src/main/java/de/juplo/kafka/SimpleConsumer.java
+++ b/
src/main/java/de/juplo/kafka/SimpleConsumer.java
@@
-31,7
+31,6
@@
public class SimpleConsumer implements Runnable
{
log.info("{} - Subscribing to topic test", id);
consumer.subscribe(Arrays.asList(topic));
- running = true;
while (true)
{
@@
-65,7
+64,6
@@
public class SimpleConsumer implements Runnable
}
finally
{
- running = false;
log.info("{} - Closing the KafkaConsumer", id);
consumer.close();
log.info("{}: Consumed {} messages in total, exiting!", id, consumed);