public interface Server
Modifier and Type | Method and Description |
---|---|
Optional<Executor> |
executor()
Obtain the executor for worker threads.
|
void |
join()
Waits for this thread to die.
|
void |
start()
Start the web server.
|
void |
stop()
Stop the web server.
|
void start() throws Exception
Exception
- If server fail to start.void join() throws InterruptedException
InterruptedException
- If wait didn't success.Copyright © 2017. All rights reserved.