feat: The size buffer for listeners to a chatroom is configurable
[demos/kafka/chat] / src / main / java / de / juplo / kafka / chat / backend / ChatBackendConfiguration.java
index aea5f8e..adabb92 100644 (file)
@@ -41,9 +41,9 @@ public class ChatBackendConfiguration
   }
 
   @Bean
-  ChatroomFactory chatroomFactory()
+  ChatroomFactory chatroomFactory(ChatBackendProperties properties)
   {
-    return new InMemoryChatroomFactory();
+    return new InMemoryChatroomFactory(properties.getChatroomBufferSize());
   }
 
   @Bean