X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fkafka%2Fchat%2Fbackend%2FChatBackendProperties.java;h=ba794523eedfcce7eccb6737fdd22551cdcdd82e;hb=89b5eb1eaf7890c830848dbc4281add2bff41131;hp=9a73f6f173cb85e0a227ea10f6e6eaf7250c905e;hpb=3e7e62678fdcdc2d89179ccc16bd10709bf1e499;p=demos%2Fkafka%2Fchat diff --git a/src/main/java/de/juplo/kafka/chat/backend/ChatBackendProperties.java b/src/main/java/de/juplo/kafka/chat/backend/ChatBackendProperties.java index 9a73f6f1..ba794523 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/ChatBackendProperties.java +++ b/src/main/java/de/juplo/kafka/chat/backend/ChatBackendProperties.java @@ -6,6 +6,8 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import java.net.URI; import java.nio.file.Paths; +import java.time.Duration; +import java.util.logging.Level; @ConfigurationProperties("chat.backend") @@ -15,10 +17,11 @@ public class ChatBackendProperties { private String instanceId = "DEV"; private String allowedOrigins = "http://localhost:4200"; - private int chatroomBufferSize = 8; + private int chatroomHistoryLimit = 100; private ServiceType services = ServiceType.inmemory; private InMemoryServicesProperties inmemory = new InMemoryServicesProperties(); private KafkaServicesProperties kafka = new KafkaServicesProperties(); + private ProjectreactorProperties projectreactor = new ProjectreactorProperties(); @Getter @@ -43,10 +46,18 @@ public class ChatBackendProperties private String infoChannelTopic = "info_channel"; private String dataChannelTopic = "data_channel"; private int numPartitions = 2; + private Duration pollingInterval = Duration.ofSeconds(1); private String haproxyRuntimeApi = "haproxy:8401"; private String haproxyMap = "/usr/local/etc/haproxy/sharding.map"; } + @Getter + @Setter + public static class ProjectreactorProperties + { + private Level loggingLevel = Level.FINE; + private boolean showOperatorLine = true; + } public enum ServiceType { inmemory, kafka } public enum StorageStrategyType { none, files, mongodb } public enum ShardingStrategyType { none, kafkalike }