Thin wrapper around a Jetty Server that exposes lifecycle methods.
More...
Public Member Functions | |
| void | join () throws InterruptedException |
| Blocks the calling thread until the server is stopped. | |
| Server | server () |
Returns the underlying Jetty Server for advanced use cases. | |
| void | start () throws Exception |
| Starts the underlying Jetty server. | |
| void | stop () throws Exception |
| Stops the underlying Jetty server. | |
Thin wrapper around a Jetty Server that exposes lifecycle methods.
Created exclusively by JettyWebSocketServerFactory. Callers use start(), join() and stop() to control the server lifecycle.
Definition at line 38 of file JettyWebSocketServerRunner.java.
| void dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner.join | ( | ) | throws InterruptedException |
Blocks the calling thread until the server is stopped.
| InterruptedException | if the current thread is interrupted while waiting |
Definition at line 65 of file JettyWebSocketServerRunner.java.
| Server dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner.server | ( | ) |
Returns the underlying Jetty Server for advanced use cases.
Definition at line 83 of file JettyWebSocketServerRunner.java.
| void dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner.start | ( | ) | throws Exception |
Starts the underlying Jetty server.
| Exception | if the server fails to start |
Definition at line 56 of file JettyWebSocketServerRunner.java.
| void dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner.stop | ( | ) | throws Exception |
Stops the underlying Jetty server.
| Exception | if the server fails to stop cleanly |
Definition at line 74 of file JettyWebSocketServerRunner.java.