Interface ServerCollection

All Known Implementing Classes:
InMemoryServerCollection

public interface ServerCollection
The collection containing the servers.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    all()
     
    void
    Remove a server, given the name of the servers.
    void
    setCount(String name, int count)
    Set 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

      void add(CharServer srv)
      Parameters:
      srv - A new server to add to our known servers.
    • removeByName

      void removeByName(String name)
      Remove a server, given the name of the servers.
      Parameters:
      name - The name of the server
    • setCount

      void setCount(String name, int count)
      Set the user count for the given server name
      Parameters:
      name - The name of the server
      count - The amount of users.