@ThreadSafe public interface Server
accept()
s new connections.Modifier and Type | Method and Description |
---|---|
void |
shutdown()
Initiates an orderly shutdown of the server.
|
void |
start(ServerListener listener)
Starts transport.
|
void start(ServerListener listener) throws IOException
listener
until after start()
returns. The method only returns after it has done the equivalent of bind()ing, so it will be
able to service any connections created after returning.listener
- non-null
listener of server eventsIOException
- if unable to bindvoid shutdown()
ServerListener.serverShutdown()
callback is called). This
method may only be called once.