{
return new StorageStrategyITConfig()
{
- InMemoryChatHomeService inMemoryChatHomeService = new InMemoryChatHomeService(
- 1,
- new int[] { 0 },
- getStorageStrategy().read());
+ int bufferSize = 8;
- SimpleChatHome simpleChatHome = new SimpleChatHome(inMemoryChatHomeService);
-
- InMemoryChatRoomFactory chatRoomFactory = new InMemoryChatRoomFactory(
- inMemoryChatHomeService,
- chatRoomId -> 0,
+ SimpleChatHome simpleChatHome = new SimpleChatHome(
+ getStorageStrategy().read(),
clock,
- 8);
+ bufferSize);
@Override
public ChatHome getChatHome()
{
return simpleChatHome;
}
-
- @Override
- public ChatRoomFactory getChatRoomFactory()
- {
- return chatRoomFactory;
- }
};
}
}