Class SocketServerConnectionManager
java.lang.Object
com.thecoderscorner.menu.remote.mgrclient.SocketServerConnectionManager
- All Implemented Interfaces:
ServerConnectionManager
-
Constructor Summary
ConstructorsConstructorDescriptionSocketServerConnectionManager(MenuCommandProtocol protocol, ScheduledExecutorService service, int port, Clock clock) -
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
-
Constructor Details
-
Method Details
-
getServerConnections
- Specified by:
getServerConnectionsin interfaceServerConnectionManager- Returns:
- a list of all current connections for this manager
-
stop
public void stop()Description copied from interface:ServerConnectionManagerStop the manager- Specified by:
stopin interfaceServerConnectionManager
-