`requests`-Service für das SumUp-Beispiel implementiert
[demos/kafka/training] / src / main / java / de / juplo / kafka / ApplicationProperties.java
index 14e928f..ccddc81 100644 (file)
@@ -10,7 +10,7 @@ import javax.validation.constraints.NotNull;
 import java.time.Duration;
 
 
-@ConfigurationProperties(prefix = "consumer")
+@ConfigurationProperties(prefix = "sumup.requests")
 @Validated
 @Getter
 @Setter
@@ -27,10 +27,23 @@ public class ApplicationProperties
   private String clientId;
   @NotNull
   @NotEmpty
-  private String topic;
+  private String topicIn;
   @NotNull
   @NotEmpty
   private String autoOffsetReset;
   @NotNull
   private Duration commitInterval;
+  @NotNull
+  @NotEmpty
+  private String topicOut;
+  @NotNull
+  @NotEmpty
+  private String acks;
+  @NotNull
+  private Integer batchSize;
+  @NotNull
+  private Integer lingerMs;
+  @NotNull
+  @NotEmpty
+  private String compressionType;
 }