Versendete Nachrichten an den neuen Kontrakt angepasst
[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   @NotNull
20   @NotEmpty
21   private String bootstrapServer;
22   @NotNull
23   @NotEmpty
24   private String groupId;
25   @NotNull
26   @NotEmpty
27   private String clientId;
28   @NotNull
29   @NotEmpty
30   private String topicIn;
31   @NotNull
32   @NotEmpty
33   private String autoOffsetReset;
34   @NotNull
35   private Duration commitInterval;
36   @NotNull
37   @NotEmpty
38   private String topicOut;
39   @NotNull
40   @NotEmpty
41   private String acks;
42   @NotNull
43   private Integer batchSize;
44   @NotNull
45   private Integer lingerMs;
46   @NotNull
47   @NotEmpty
48   private String compressionType;
49 }