public class ConnectionManager
extends java.lang.Object
Constructor and Description |
---|
ConnectionManager()
Construct a new ConnectionManager.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isAlive()
Find out if this ConnectionManager is alive.
|
void |
listen(int port,
Registry registry,
ConnectionManagerListener listener)
Listen for connections on a particular port.
|
void |
shutdown()
Shut down this ConnectionManager.
|
public void listen(int port, Registry registry, ConnectionManagerListener listener) throws java.io.IOException
port
- The port to listen on.registry
- The registry to install in new connections.listener
- A ConnectionManagerListener that will be informed of new connections.java.io.IOException
- If there is a problem listening on the port.public void shutdown()
public boolean isAlive()