@@ -174,12 +174,14 @@ default Room createRoom(InitialRoomSetting roomSetting) {
174174 Optional <Player > getPlayerByIdentity (String identity );
175175
176176 /**
177- * Fetches the current number of players activating on the server.
177+ * Retrieves the snapshot of the number of players in the management list.
178+ * This is expected to provide the most recent update of the player count.
179+ * This operation is thread-safe and provides an atomic count.
178180 *
179- * @return the current number of players ({@code integer} value)
180- * @since 0.5.0
181+ * @return the most recent update of the number of players in the list
182+ * @since 0.7.3
181183 */
182- int getPlayerCount ();
184+ int getSnapshotPlayerCount ();
183185
184186 /**
185187 * Ensures the calculation on the player list is thread-safe.
@@ -190,14 +192,17 @@ default Room createRoom(InitialRoomSetting roomSetting) {
190192 void computePlayers (Consumer <Iterator <Player >> onComputed );
191193
192194 /**
193- * Retrieves a read-only global player management list on the server. This method should be used
194- * to prevent the "escape references" issue.
195+ * Retrieves a snapshot of the read-only player management list.
196+ * This is expected to provide the most recent update of the player list.
197+ * This method should be used to prevent the "escape references" issue
198+ * and provides thread-safe access to the player collection.
195199 *
196- * @return a list of all {@link Player}s in the management list on the server
200+ * @return the recent update of the list of all {@link Player}s in the management list
197201 * @see PlayerManager
198202 * @see List
203+ * @since 0.7.3
199204 */
200- List <Player > getReadonlyPlayersList ();
205+ List <Player > getSnapshotPlayersList ();
201206
202207 /**
203208 * Retrieves a room instance by using its ID.
@@ -217,21 +222,22 @@ default Room createRoom(InitialRoomSetting roomSetting) {
217222 void computeRooms (Consumer <Iterator <Room >> onComputed );
218223
219224 /**
220- * Retrieves a read-only global room management list on the server. This method should be used
221- * to prevent the "escape references" issue.
225+ * Retrieves the most recent rooms in the room management list.
222226 *
223- * @return a list of all rooms {@link Room} in the management list on the server
227+ * @return a most recent up-to-date list of all {@link Room}s in the management list
224228 * @see RoomManager
225229 * @see List
230+ * @since 0.7.3
226231 */
227- List <Room > getReadonlyRoomsList ();
232+ List <Room > getSnapshotRoomsList ();
228233
229234 /**
230- * Fetches the current number of rooms on the server .
235+ * Fetches the most recent number of rooms in the management list .
231236 *
232- * @return the current number of rooms ({@code integer} value)
237+ * @return the most recent number of rooms ({@code integer} value)
238+ * @since 0.7.3
233239 */
234- int getRoomCount ();
240+ int getSnapshotRoomCount ();
235241
236242 /**
237243 * Allows a player to join a particular room.
0 commit comments