+ InMemoryChatroomService chatroomService =
+ new InMemoryChatroomService(new LinkedHashMap<>());
+ return new Chatroom(id, name, chatroomService, bufferSize);
+ }
+
+ public Chatroom restoreChatroom(
+ UUID id,
+ String name,
+ InMemoryChatroomService chatroomService)
+ {
+ return new Chatroom(id, name, chatroomService, bufferSize);