Einheitliche Benennung des Producers -- ALIGN
authorKai Moritz <kai@juplo.de>
Wed, 25 Sep 2024 16:19:41 +0000 (18:19 +0200)
committerKai Moritz <kai@juplo.de>
Wed, 25 Sep 2024 16:19:41 +0000 (18:19 +0200)
src/main/java/de/juplo/kafka/Application.java
src/main/java/de/juplo/kafka/DriverController.java
src/main/java/de/juplo/kafka/ExampleProducer.java

index 0719459..e2d3e87 100644 (file)
@@ -16,14 +16,14 @@ import java.util.concurrent.Executors;
 public class Application
 {
   @Bean
-  public EndlessProducer producer(
+  public ExampleProducer producer(
       ApplicationProperties properties,
       @Value("${spring.kafka.client-id:DEV}") String clientId,
       KafkaTemplate<String, String> kafkaTemplate)
   {
 
-    EndlessProducer producer =
-        new EndlessProducer(
+    ExampleProducer producer =
+        new ExampleProducer(
             Executors.newFixedThreadPool(1),
             clientId,
             properties.getThrottleMs(),
index ce4df68..ab90e3c 100644 (file)
@@ -14,7 +14,7 @@ import java.util.concurrent.ExecutionException;
 @RequiredArgsConstructor
 public class DriverController
 {
-  private final EndlessProducer producer;
+  private final ExampleProducer producer;
 
 
   @PostMapping("start")
index 30fefab..b435a08 100644 (file)
@@ -13,7 +13,7 @@ import java.util.concurrent.ExecutorService;
 
 
 @Slf4j
-public class EndlessProducer implements Runnable
+public class ExampleProducer implements Runnable
 {
   private final ExecutorService executor;
   private final String id;
@@ -24,7 +24,7 @@ public class EndlessProducer implements Runnable
   private long i = 0;
   private long produced = 0;
 
-  public EndlessProducer(
+  public ExampleProducer(
       ExecutorService executor,
       String clientId,
       int throttleMs,