Der supersimple Producer schreibt endlos...
authorKai Moritz <kai@juplo.de>
Tue, 12 Nov 2024 11:26:27 +0000 (12:26 +0100)
committerKai Moritz <kai@juplo.de>
Tue, 12 Nov 2024 11:26:27 +0000 (12:26 +0100)
src/main/java/de/juplo/kafka/ExampleProducer.java

index ba95dfb..09cd323 100644 (file)
@@ -23,7 +23,7 @@ public class ExampleProducer implements ApplicationRunner
   @Override
   public void run(ApplicationArguments args)
   {
-    for (int i = 0; i < 100; i++)
+    for (int i = 0; true; i++)
     {
       // end::supersimple[]
       // tag::callback[]