import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
+import java.time.Duration;
-@ConfigurationProperties(prefix = "consumer")
+@ConfigurationProperties(prefix = "sumup.adder")
@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;
}