|
36 | 36 | * Wrap a {@link org.springframework.web.socket.WebSocketSession WebSocketSession} |
37 | 37 | * to guarantee only one thread can send messages at a time. |
38 | 38 | * |
39 | | - * <p>If a send is slow, subsequent attempts to send more messages from other threads |
40 | | - * will not be able to acquire the flush lock and messages will be buffered instead. |
41 | | - * At that time, the specified buffer-size limit and send-time limit will be checked |
42 | | - * and the session will be closed if the limits are exceeded. |
| 39 | + * <p>If a {@code send} is slow, subsequent attempts to send more messages from |
| 40 | + * other threads will not be able to acquire the flush lock, and messages will be |
| 41 | + * buffered instead. At that time, the specified buffer-size limit and send-time |
| 42 | + * limit will be checked, and the session will be closed if the limits are exceeded. |
43 | 43 | * |
44 | 44 | * @author Rossen Stoyanchev |
45 | 45 | * @author Juergen Hoeller |
@@ -90,7 +90,7 @@ public ConcurrentWebSocketSessionDecorator(WebSocketSession delegate, int sendTi |
90 | 90 | * @param sendTimeLimit the send-time limit (milliseconds) |
91 | 91 | * @param bufferSizeLimit the buffer-size limit (number of bytes) |
92 | 92 | * @param overflowStrategy the overflow strategy to use; by default the |
93 | | - * session is terminated. |
| 93 | + * session is terminated |
94 | 94 | * @since 5.1 |
95 | 95 | */ |
96 | 96 | public ConcurrentWebSocketSessionDecorator( |
@@ -119,6 +119,14 @@ public int getBufferSizeLimit() { |
119 | 119 | return this.bufferSizeLimit; |
120 | 120 | } |
121 | 121 |
|
| 122 | + /** |
| 123 | + * Return the configured {@link OverflowStrategy}. |
| 124 | + * @since 6.2.9 |
| 125 | + */ |
| 126 | + public OverflowStrategy getOverflowStrategy() { |
| 127 | + return this.overflowStrategy; |
| 128 | + } |
| 129 | + |
122 | 130 | /** |
123 | 131 | * Return the current buffer size (number of bytes). |
124 | 132 | */ |
|
0 commit comments