Package crow.game.login.api
Interface ServerCollection
- All Known Implementing Classes:
InMemoryServerCollection
public interface ServerCollection
The collection containing the servers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidadd(CharServer srv) all()voidremoveByName(String name) Remove a server, given the name of the servers.voidSet the user count for the given server name
-
Method Details
-
all
Set<CharServer> all()- Returns:
- a read-only view of all the kwown servers.
-
add
- Parameters:
srv- A new server to add to our known servers.
-
removeByName
Remove a server, given the name of the servers.- Parameters:
name- The name of the server
-
setCount
Set the user count for the given server name- Parameters:
name- The name of the servercount- The amount of users.
-