projects
/
demos
/
kafka
/
chat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
NEU
[demos/kafka/chat]
/
src
/
main
/
java
/
de
/
juplo
/
kafka
/
chat
/
backend
/
ChatBackendProperties.java
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
177d4f5
..
4d8f18d
100644
(file)
--- 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 int chatroomBufferSize = 8;
private ServiceType services = ServiceType.inmemory;
private InMemoryServicesProperties inmemory = new InMemoryServicesProperties();
+ private KafkaServicesProperties kafka = new KafkaServicesProperties();
@Getter
@Getter
@@
-29,6
+30,16
@@
public class ChatBackendProperties
private String storageDirectory = Paths.get(System.getProperty("java.io.tmpdir"),"chat", "backend").toString();
}
private String storageDirectory = Paths.get(System.getProperty("java.io.tmpdir"),"chat", "backend").toString();
}
+ @Getter
+ @Setter
+ public static class KafkaServicesProperties
+ {
+ private String clientId;
+ private String bootstrapServers = ":9092";
+ private String topic = "test";
+ private int numPartitions = 2;
+ }
+
public enum ServiceType { inmemory }
public enum StorageStrategyType { files, mongodb }
public enum ShardingStrategyType { none, kafkalike }
public enum ServiceType { inmemory }
public enum StorageStrategyType { files, mongodb }
public enum ShardingStrategyType { none, kafkalike }