Interface ServerConnectionManager

All Known Implementing Classes:
SocketServerConnectionManager

public interface ServerConnectionManager
A server connection manager is responsible for connections to the menu manager, it will completely manage all the connections, creating new ones as they come in, and removing old ones as they are closed out.
  • Method Details

    • getServerConnections

      List<ServerConnection> getServerConnections()
      Returns:
      a list of all current connections for this manager
    • start

      void start(NewServerConnectionListener listener)
      Start the manager up so it starts to accept connections, the listener will be called for each new connection.
      Parameters:
      listener - will receive an event when a new connection is made
    • stop

      void stop() throws Exception
      Stop the manager
      Throws:
      Exception - if unable to stop correctly