public class TomcatRequestUpgradeStrategy extends Object implements RequestUpgradeStrategy
RequestUpgradeStrategy for use with Tomcat.| Constructor and Description |
|---|
TomcatRequestUpgradeStrategy() |
public void setAsyncSendTimeout(Long timeoutInMillis)
WebSocketContainer.setAsyncSendTimeout(long).@Nullable public Long getAsyncSendTimeout()
public void setMaxSessionIdleTimeout(Long timeoutInMillis)
WebSocketContainer.setDefaultMaxSessionIdleTimeout(long).@Nullable public Long getMaxSessionIdleTimeout()
public void setMaxTextMessageBufferSize(Integer bufferSize)
WebSocketContainer.setDefaultMaxTextMessageBufferSize(int).@Nullable public Integer getMaxTextMessageBufferSize()
public void setMaxBinaryMessageBufferSize(Integer bufferSize)
WebSocketContainer.setDefaultMaxBinaryMessageBufferSize(int).@Nullable public Integer getMaxBinaryMessageBufferSize()
public reactor.core.publisher.Mono<Void> upgrade(org.springframework.web.server.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.