Endless Producer: a simple producer, implemented as Spring-Boot-App
[demos/kafka/training] / src / main / java / de / juplo / kafka / ApplicationProperties.java
diff --git a/src/main/java/de/juplo/kafka/ApplicationProperties.java b/src/main/java/de/juplo/kafka/ApplicationProperties.java
new file mode 100644 (file)
index 0000000..ab26890
--- /dev/null
@@ -0,0 +1,17 @@
+package de.juplo.kafka;
+
+import lombok.Getter;
+import lombok.Setter;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+
+@ConfigurationProperties(prefix = "producer")
+@Getter
+@Setter
+public class ApplicationProperties
+{
+  private String bootstrapServer;
+  private String clientId;
+  private String topic;
+  private String acks;
+  private int throttleMs;
+}