import java.net.URI;
import java.nio.file.Paths;
+import java.util.logging.Level;
@ConfigurationProperties("chat.backend")
private ServiceType services = ServiceType.inmemory;
private InMemoryServicesProperties inmemory = new InMemoryServicesProperties();
private KafkaServicesProperties kafka = new KafkaServicesProperties();
+ private ProjectreactorProperties projectreactor = new ProjectreactorProperties();
@Getter
private String infoChannelTopic = "info_channel";
private String dataChannelTopic = "data_channel";
private int numPartitions = 2;
+ 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 }