X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fde%2Fjuplo%2Fkafka%2Fchat%2Fbackend%2FChatBackendProperties.java;h=4724f6b54d7f21d14dafcc6115c4823a8beaec23;hb=915ed8f85459da3c95f86b6351a3d7129668bc8e;hp=177d4f513b7e86efcb4577052cf41f9acc6cd20b;hpb=ead1db4a7daa0bcf944063f3920b3974c2f62e07;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 177d4f51..4724f6b5 100644 --- a/src/main/java/de/juplo/kafka/chat/backend/ChatBackendProperties.java +++ b/src/main/java/de/juplo/kafka/chat/backend/ChatBackendProperties.java @@ -16,6 +16,7 @@ public class ChatBackendProperties private int chatroomBufferSize = 8; private ServiceType services = ServiceType.inmemory; private InMemoryServicesProperties inmemory = new InMemoryServicesProperties(); + private KafkaServicesProperties kafka = new KafkaServicesProperties(); @Getter @@ -29,6 +30,14 @@ public class ChatBackendProperties private String storageDirectory = Paths.get(System.getProperty("java.io.tmpdir"),"chat", "backend").toString(); } + @Getter + @Setter + public static class KafkaServicesProperties + { + private String topic = "test"; + private int numPartitions = 2; + } + public enum ServiceType { inmemory } public enum StorageStrategyType { files, mongodb } public enum ShardingStrategyType { none, kafkalike }