WIP
[demos/kafka/training] / src / main / java / de / juplo / kafka / ApplicationProperties.java
index fa731c5..d46a8b3 100644 (file)
@@ -7,27 +7,17 @@ import org.springframework.validation.annotation.Validated;
 
 import javax.validation.constraints.NotEmpty;
 import javax.validation.constraints.NotNull;
+import java.time.Duration;
 
 
-@ConfigurationProperties(prefix = "consumer")
+@ConfigurationProperties(prefix = "simple.consumer")
 @Validated
 @Getter
 @Setter
 public class ApplicationProperties
 {
-  @NotNull
-  @NotEmpty
-  private String bootstrapServer;
-  @NotNull
-  @NotEmpty
-  private String groupId;
-  @NotNull
-  @NotEmpty
-  private String clientId;
   @NotNull
   @NotEmpty
   private String topic;
-  @NotNull
-  @NotEmpty
-  private String autoOffsetReset;
+  private Duration throttle;
 }