public class TomcatWebSocketSession extends StandardWebSocketSession
WebSocketSession
adapter for Tomcat's
Session
.AbstractListenerWebSocketSession.WebSocketSendProcessor
Constructor and Description |
---|
TomcatWebSocketSession(javax.websocket.Session session,
HandshakeInfo info,
DataBufferFactory factory) |
TomcatWebSocketSession(javax.websocket.Session session,
HandshakeInfo info,
DataBufferFactory factory,
reactor.core.publisher.MonoProcessor<java.lang.Void> completionMono) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canSuspendReceiving()
Whether the underlying WebSocket API has flow control and can suspend and
resume the receiving of messages.
|
protected void |
resumeReceiving()
Resume receiving new message(s) after demand is generated by the
downstream Subscriber.
|
protected void |
suspendReceiving()
Suspend receiving until received message(s) are processed and more demand
is generated by the downstream Subscriber.
|
close, sendMessage
getSendProcessor, onComplete, onError, onNext, onSubscribe, receive, send
binaryMessage, bufferFactory, getDelegate, getHandshakeInfo, getId, pingMessage, pongMessage, textMessage, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
public TomcatWebSocketSession(javax.websocket.Session session, HandshakeInfo info, DataBufferFactory factory)
public TomcatWebSocketSession(javax.websocket.Session session, HandshakeInfo info, DataBufferFactory factory, reactor.core.publisher.MonoProcessor<java.lang.Void> completionMono)
protected boolean canSuspendReceiving()
AbstractListenerWebSocketSession
canSuspendReceiving
in class StandardWebSocketSession
protected void suspendReceiving()
AbstractListenerWebSocketSession
Note: if the underlying WebSocket API does not provide
flow control for receiving messages, and this method should be a no-op
and AbstractListenerWebSocketSession.canSuspendReceiving()
should return false
.
suspendReceiving
in class StandardWebSocketSession
protected void resumeReceiving()
AbstractListenerWebSocketSession
Note: if the underlying WebSocket API does not provide
flow control for receiving messages, and this method should be a no-op
and AbstractListenerWebSocketSession.canSuspendReceiving()
should return false
.
resumeReceiving
in class StandardWebSocketSession