public class TomcatRequestUpgradeStrategy extends Object implements RequestUpgradeStrategy
RequestUpgradeStrategy for use with Tomcat.| Constructor and Description |
|---|
TomcatRequestUpgradeStrategy() |
public void setAsyncSendTimeout(Long timeoutInMillis)
WebSocketContainer.setAsyncSendTimeout(long).public void setMaxSessionIdleTimeout(Long timeoutInMillis)
WebSocketContainer.setDefaultMaxSessionIdleTimeout(long).public void setMaxTextMessageBufferSize(Integer bufferSize)
WebSocketContainer.setDefaultMaxTextMessageBufferSize(int).public void setMaxBinaryMessageBufferSize(Integer bufferSize)
WebSocketContainer.setDefaultMaxBinaryMessageBufferSize(int).public reactor.core.publisher.Mono<Void> upgrade(ServerWebExchange exchange, WebSocketHandler handler, @Nullable String subProtocol)
RequestUpgradeStrategyupgrade in interface RequestUpgradeStrategyexchange - the current exchangehandler - handler for the WebSocket sessionsubProtocol - the selected sub-protocol got the handlerMono<Void> to indicate the outcome of the
WebSocket session handling.