Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner Class Reference

Thin wrapper around a Jetty Server that exposes lifecycle methods. More...

Collaboration diagram for dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner:

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.

Detailed Description

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.

Member Function Documentation

◆ join()

void dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner.join ( ) throws InterruptedException

Blocks the calling thread until the server is stopped.

Exceptions
InterruptedExceptionif the current thread is interrupted while waiting

Definition at line 65 of file JettyWebSocketServerRunner.java.

◆ server()

Server dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner.server ( )

Returns the underlying Jetty Server for advanced use cases.

Returns
the Jetty server instance

Definition at line 83 of file JettyWebSocketServerRunner.java.

◆ start()

void dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner.start ( ) throws Exception

Starts the underlying Jetty server.

Exceptions
Exceptionif the server fails to start

Definition at line 56 of file JettyWebSocketServerRunner.java.

◆ stop()

void dev.rafex.ether.websocket.jetty12.JettyWebSocketServerRunner.stop ( ) throws Exception

Stops the underlying Jetty server.

Exceptions
Exceptionif the server fails to stop cleanly

Definition at line 74 of file JettyWebSocketServerRunner.java.


The documentation for this class was generated from the following file: