Class ServerContainerCustomizer
java.lang.Object
io.micronaut.servlet.websocket.ServerContainerCustomizer
Applies the Micronaut defaults to a container's
WebSocketContainer.
Jetty, Tomcat and Undertow ship different message size and idle timeout defaults, so these are always set explicitly to make behaviour the same on every runtime and equal to that of the Netty server.
- Since:
- 6.2.0
- Author:
- graemerocher
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidapply(jakarta.websocket.WebSocketContainer container, ServletWebSocketConfiguration configuration, Duration idleTimeout) Applies the configured defaults.
-
Method Details
-
apply
public static void apply(jakarta.websocket.WebSocketContainer container, ServletWebSocketConfiguration configuration, Duration idleTimeout) Applies the configured defaults.- Parameters:
container- The containerconfiguration- The WebSocket configurationidleTimeout- The idle timeout to apply
-