WIP
[demos/kafka/training] / src / main / java / de / juplo / kafka / ApplicationProperties.java
index ab26890..7d5f105 100644 (file)
@@ -4,14 +4,17 @@ import lombok.Getter;
 import lombok.Setter;
 import org.springframework.boot.context.properties.ConfigurationProperties;
 
-@ConfigurationProperties(prefix = "producer")
+import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.NotNull;
+
+
+@ConfigurationProperties(prefix = "sumup.gateway")
 @Getter
 @Setter
 public class ApplicationProperties
 {
-  private String bootstrapServer;
-  private String clientId;
+  @NotNull
+  @NotEmpty
   private String topic;
-  private String acks;
-  private int throttleMs;
+  private Integer partition;
 }