public interface DaemonServerConnector extends Stoppable
A server connector should only be used by one daemon, and has a single use lifecycle. Implementations must be threadsafe so that start/stop can be called from different threads.
| 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.
|
Address start(IncomingConnectionHandler handler)
When this method returns, the daemon will be ready to accept connections.
IllegalStateException - if this method has previously been called on this object, or if the stop method has previously been called on this object.Copyright © 2013. All rights reserved