WebSocketSession adapter for Tomcat's
jakarta.websocket.Session .
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicIntegerFieldUpdater | |
| private volatile int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TomcatWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory, Sinks.
|
| Modifier and Type | Method and Description |
|---|---|
| protected boolean | canSuspendReceiving()
Overrides org. Whether the underlying WebSocket API has flow control and can suspend and resume the receiving of messages. |
| protected void | resumeReceiving()
Overrides org. Resume receiving new message(s) after demand is generated by the downstream Subscriber. |
| protected void | suspendReceiving()
Overrides org. Suspend receiving until received message(s) are processed and more demand is generated by the downstream Subscriber. |
| SUSPENDED | back to summary |
|---|---|
| private static final AtomicIntegerFieldUpdater<TomcatWebSocketSession> SUSPENDED | |
| suspended | back to summary |
|---|---|
private volatile int suspended
| |
| TomcatWebSocketSession | back to summary |
|---|---|
| public TomcatWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory) | |
| TomcatWebSocketSession | back to summary |
|---|---|
| public TomcatWebSocketSession(Session session, HandshakeInfo info, DataBufferFactory factory, Sinks. | |
| canSuspendReceiving | back to summary |
|---|---|
| protected boolean canSuspendReceiving() Overrides org. Doc from org. Whether 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.
| |
| resumeReceiving | back to summary |
|---|---|
| protected void resumeReceiving() Overrides org. Doc from org. Resume 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
| |
| suspendReceiving | back to summary |
|---|---|
| protected void suspendReceiving() Overrides org. Doc from org. Suspend 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
| |