NEU
[demos/kafka/chat] / src / main / java / de / juplo / kafka / chat / backend / ChatBackendProperties.java
index 177d4f5..4724f6b 100644 (file)
@@ -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 }