public class ServerSocketChannelAcceptor extends Object implements Lifecycle.ShutdownComponent
| Constructor and Description |
|---|
ServerSocketChannelAcceptor(String socketHostname,
int[] socketPorts,
ConnectionManager mgr)
Configures the connection manager with the hostname and ports on which it will listen for
socket connections.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
bind()
Bind to the socket ports and return true if any of the binds succeeded.
|
void |
shutdown()
Unbind our listening sockets.
|
public ServerSocketChannelAcceptor(String socketHostname, int[] socketPorts, ConnectionManager mgr)
socketHostname - the hostname to which we bind our sockets or null to bind to all
interfaces.socketPorts - the ports on which to listen for TCP connection.public boolean bind()
public void shutdown()
shutdown in interface Lifecycle.ShutdownComponentCopyright © 2015. All rights reserved.