public class DaemonTcpServerConnector extends Object implements DaemonServerConnector
| Constructor and Description |
|---|
DaemonTcpServerConnector() |
| Modifier and Type | Method and Description |
|---|---|
Address |
start(IncomingConnectionHandler handler)
Starts accepting connections, passing any established connections to the given handler.
|
void |
stop()
Stops accepting new connections, and blocks until all active connections close.
|
public Address start(IncomingConnectionHandler handler)
DaemonServerConnectorWhen this method returns, the daemon will be ready to accept connections.
start in interface DaemonServerConnectorpublic void stop()
DaemonServerConnectorstop in interface Stoppablestop in interface DaemonServerConnectorCopyright © 2013. All rights reserved