Einheitliche Benennung des Producers -- ALIGN
authorKai Moritz <kai@juplo.de>
Wed, 25 Sep 2024 17:13:05 +0000 (19:13 +0200)
committerKai Moritz <kai@juplo.de>
Thu, 26 Sep 2024 08:41:59 +0000 (10:41 +0200)
src/main/java/de/juplo/kafka/ApplicationConfiguration.java
src/main/java/de/juplo/kafka/ExampleProducer.java

index 0642aa4..132413c 100644 (file)
@@ -14,12 +14,12 @@ import java.util.Properties;
 public class ApplicationConfiguration
 {
   @Bean
-  public RestProducer restProducer(
+  public ExampleProducer exampleProducer(
       ApplicationProperties properties,
       KafkaProducer<String, String> kafkaProducer)
   {
     return
-        new RestProducer(
+        new ExampleProducer(
             properties.getClientId(),
             properties.getTopic(),
             properties.getPartition(),
index cecb980..c6e8485 100644 (file)
@@ -3,7 +3,6 @@ package de.juplo.kafka;
 import lombok.RequiredArgsConstructor;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.kafka.clients.producer.Producer;
-import org.apache.kafka.clients.producer.KafkaProducer;
 import org.apache.kafka.clients.producer.ProducerRecord;
 import org.springframework.http.HttpStatus;
 import org.springframework.web.bind.annotation.*;
@@ -16,7 +15,7 @@ import java.math.BigInteger;
 @RequestMapping
 @ResponseBody
 @RequiredArgsConstructor
-public class RestProducer
+public class ExampleProducer
 {
   private final String id;
   private final String topic;