Package com.thecoderscorner.menu.mgr
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 Summary
Modifier and TypeMethodDescriptionvoidstart(NewServerConnectionListener listener) Start the manager up so it starts to accept connections, the listener will be called for each new connection.voidstop()Stop the manager
-
Method Details
-
getServerConnections
List<ServerConnection> getServerConnections()- Returns:
- a list of all current connections for this manager
-
stop
Stop the manager- Throws:
Exception- if unable to stop correctly
-