Parameter `partition` wiederbelebt
[demos/kafka/training] / src / main / java / de / juplo / kafka / ApplicationProperties.java
1 package de.juplo.kafka;
2
3 import lombok.Getter;
4 import lombok.Setter;
5 import org.springframework.boot.context.properties.ConfigurationProperties;
6
7 import javax.validation.constraints.NotEmpty;
8 import javax.validation.constraints.NotNull;
9
10
11 @ConfigurationProperties(prefix = "sumup.gateway")
12 @Getter
13 @Setter
14 public class ApplicationProperties
15 {
16   @NotNull
17   @NotEmpty
18   private String bootstrapServer;
19   @NotNull
20   @NotEmpty
21   private String clientId;
22   @NotNull
23   @NotEmpty
24   private String topic;
25   private Integer partition;
26   @NotNull
27   @NotEmpty
28   private String acks;
29   @NotNull
30   private Integer batchSize;
31   @NotNull
32   private Integer lingerMs;
33   @NotNull
34   @NotEmpty
35   private String compressionType;
36 }