this.currentOffset = new long[numShards];
this.nextOffset = new long[numShards];
this.chatrooms = new Map[numShards];
+ IntStream
+ .range(0, numShards)
+ .forEach(shard -> this.chatrooms[shard] = new HashMap<>());
this.shardingStrategy = new KafkaLikeShardingStrategy(numShards);
}
ChatRoom chatRoom = chatrooms[record.partition()].get(chatRoomId);
if (chatRoom == null)
{
- // Alles pausieren und erst von putChatRoom wieder resumen lassen!
+ // TODO: Alles pausieren und erst von putChatRoom wieder resumen lassen!
}
KafkaChatRoomService kafkaChatRoomService =
(KafkaChatRoomService) chatRoom.getChatRoomService();