Version von SumUp-Requests, die einen fachlichen Fehler erzeugt
[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 import org.springframework.validation.annotation.Validated;
7
8 import javax.validation.constraints.NotEmpty;
9 import javax.validation.constraints.NotNull;
10 import java.time.Duration;
11
12
13 @ConfigurationProperties(prefix = "sumup.requests")
14 @Validated
15 @Getter
16 @Setter
17 public class ApplicationProperties
18 {
19   private Integer errorPosition;
20   @NotNull
21   @NotEmpty
22   private String bootstrapServer;
23   @NotNull
24   @NotEmpty
25   private String groupId;
26   @NotNull
27   @NotEmpty
28   private String clientId;
29   @NotNull
30   @NotEmpty
31   private String topicIn;
32   @NotNull
33   @NotEmpty
34   private String autoOffsetReset;
35   @NotNull
36   private Duration commitInterval;
37   @NotNull
38   @NotEmpty
39   private String topicOut;
40   @NotNull
41   @NotEmpty
42   private String acks;
43   @NotNull
44   private Integer batchSize;
45   @NotNull
46   private Integer lingerMs;
47   @NotNull
48   @NotEmpty
49   private String compressionType;
50 }