Classes | |
| class | JettyWebSocketEndpointAdapter |
Adapta una instancia de WebSocketEndpoint al Listener de Jetty 12. | |
| interface | JettyWebSocketModule |
| SPI contract for WebSocket modules that register endpoint routes. More... | |
| class | JettyWebSocketRouteRegistry |
| Mutable registry that collects WebSocket routes during module registration. More... | |
| class | JettyWebSocketServerFactory |
Factory that wires a Jetty Server with WebSocket routing. More... | |
| class | JettyWebSocketServerRunner |
Thin wrapper around a Jetty Server that exposes lifecycle methods. More... | |
| class | JettyWebSocketSession |
Jetty 12 implementation of WebSocketSession. More... | |
Functions | |
| record | JettyWebSocketModuleContext (JettyWebSocketServerConfig config) |
Read-only context passed to JettyWebSocketModule#registerRoutes. | |
| record | JettyWebSocketServerConfig (int port, int minThreads, int maxThreads, int idleTimeoutMs, String threadPoolName) |
| Immutable configuration for the Jetty WebSocket server. | |
| record dev.rafex.ether.websocket.jetty12.JettyWebSocketModuleContext | ( | JettyWebSocketServerConfig | config | ) |
Read-only context passed to JettyWebSocketModule#registerRoutes.
Wraps the current JettyWebSocketServerConfig so modules can inspect server settings (port, thread pool, etc.) at registration time.
| config | the server configuration in effect |
Definition at line 37 of file JettyWebSocketModuleContext.java.
References JettyWebSocketServerConfig().
Referenced by dev.rafex.ether.websocket.jetty12.JettyWebSocketServerFactory.create(), and dev.rafex.ether.websocket.jetty12.JettyWebSocketModule.registerRoutes().
| record dev.rafex.ether.websocket.jetty12.JettyWebSocketServerConfig | ( | int | port, |
| int | minThreads, | ||
| int | maxThreads, | ||
| int | idleTimeoutMs, | ||
| String | threadPoolName ) |
Immutable configuration for the Jetty WebSocket server.
Encapsulates port, thread pool sizing and idle timeout. Use fromEnv() to populate the values from environment variables.
| port | the HTTP port the server binds to |
| minThreads | minimum threads in the Jetty thread pool |
| maxThreads | maximum threads in the Jetty thread pool |
| idleTimeoutMs | idle timeout in milliseconds for the thread pool |
| threadPoolName | the name prefix for Jetty thread pool threads |
Creates a configuration from the current process environment.
Delegates to fromEnv(Map) using System#getenv().
Creates a configuration from the given environment map.
Recognised keys and their defaults:
HTTP_PORT — default 8080 HTTP_MIN_THREADS — default 4 HTTP_MAX_THREADS — default 32 HTTP_IDLE_TIMEOUT_MS — default 30000 HTTP_POOL_NAME — default "ether-websocket" | env | the environment map to read values from |
Parses an integer value, falling back to the default on null, blank or non-numeric input.
| value | the raw string to parse |
| fallback | the value to use when parsing fails |
Definition at line 43 of file JettyWebSocketServerConfig.java.
References JettyWebSocketServerConfig().
Referenced by dev.rafex.ether.websocket.jetty12.JettyWebSocketServerFactory.create(), dev.rafex.ether.websocket.jetty12.JettyWebSocketServerFactory.create(), JettyWebSocketModuleContext(), and JettyWebSocketServerConfig().