Class TomcatWebSocketSession
java.lang.Object
org.springframework.web.reactive.socket.adapter.AbstractWebSocketSession<T>
org.springframework.web.reactive.socket.adapter.AbstractListenerWebSocketSession<Session>
org.springframework.web.reactive.socket.adapter.StandardWebSocketSession
org.springframework.web.reactive.socket.adapter.TomcatWebSocketSession
- All Implemented Interfaces:
- Subscriber<Void>,- WebSocketSession
Spring 
WebSocketSession adapter for Tomcat's
 Session.- Since:
- 5.0
- Author:
- Violeta Georgieva
- 
Nested Class SummaryNested classes/interfaces inherited from class org.springframework.web.reactive.socket.adapter.AbstractListenerWebSocketSessionAbstractListenerWebSocketSession.WebSocketSendProcessor
- 
Field SummaryFields inherited from class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSessionlogger
- 
Constructor SummaryConstructorsConstructorDescriptionTomcatWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory) TomcatWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory, reactor.core.publisher.Sinks.Empty<Void> completionSink) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanWhether the underlying WebSocket API has flow control and can suspend and resume the receiving of messages.protected voidResume receiving new message(s) after demand is generated by the downstream Subscriber.protected voidSuspend receiving until received message(s) are processed and more demand is generated by the downstream Subscriber.Methods inherited from class org.springframework.web.reactive.socket.adapter.StandardWebSocketSessionclose, isOpen, sendMessageMethods inherited from class org.springframework.web.reactive.socket.adapter.AbstractListenerWebSocketSessioncloseStatus, getSendProcessor, onComplete, onError, onNext, onSubscribe, receive, sendMethods inherited from class org.springframework.web.reactive.socket.adapter.AbstractWebSocketSessionbinaryMessage, bufferFactory, getAttributes, getDelegate, getHandshakeInfo, getId, getLogPrefix, pingMessage, pongMessage, textMessage, toStringMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.web.reactive.socket.WebSocketSessionclose
- 
Constructor Details- 
TomcatWebSocketSession
- 
TomcatWebSocketSessionpublic TomcatWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory, reactor.core.publisher.Sinks.Empty<Void> completionSink) 
 
- 
- 
Method Details- 
canSuspendReceivingprotected boolean canSuspendReceiving()Description copied from class:AbstractListenerWebSocketSessionWhether the underlying WebSocket API has flow control and can suspend and resume the receiving of messages.Note: Sub-classes are encouraged to start out in suspended mode, if possible, and wait until demand is received. - Overrides:
- canSuspendReceivingin class- StandardWebSocketSession
 
- 
suspendReceivingprotected void suspendReceiving()Description copied from class:AbstractListenerWebSocketSessionSuspend receiving until received message(s) are processed and more demand is generated by the downstream Subscriber.Note: if the underlying WebSocket API does not provide flow control for receiving messages, this method should be a no-op and AbstractListenerWebSocketSession.canSuspendReceiving()should returnfalse.- Overrides:
- suspendReceivingin class- StandardWebSocketSession
 
- 
resumeReceivingprotected void resumeReceiving()Description copied from class:AbstractListenerWebSocketSessionResume receiving new message(s) after demand is generated by the downstream Subscriber.Note: if the underlying WebSocket API does not provide flow control for receiving messages, this method should be a no-op and AbstractListenerWebSocketSession.canSuspendReceiving()should returnfalse.- Overrides:
- resumeReceivingin class- StandardWebSocketSession
 
 
-