You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-websocket/src/main/java/org/springframework/web/socket/handler/ConcurrentWebSocketSessionDecorator.java
+9-3
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,9 @@
35
35
* only one thread can send messages at a time.
36
36
*
37
37
* <p>If a send is slow, subsequent attempts to send more messages from a different
38
-
* thread will fail to acquire the flushLock and the messages will be buffered instead --
39
-
* at that time the specified buffersize limit and sendtime limit will be checked
40
-
* and the session closed if the limits are exceeded.
38
+
* thread will fail to acquire the flush lock and the messages will be buffered
39
+
* instead: At that time, the specified buffer-size limit and send-time limit will
40
+
* be checked and the session closed if the limits are exceeded.
41
41
*
42
42
* @author Rossen Stoyanchev
43
43
* @since 4.0.3
@@ -69,6 +69,12 @@ public class ConcurrentWebSocketSessionDecorator extends WebSocketSessionDecorat
69
69
privatefinalLockcloseLock = newReentrantLock();
70
70
71
71
72
+
/**
73
+
* Create a new {@code ConcurrentWebSocketSessionDecorator}.
74
+
* @param delegate the {@code WebSocketSession} to delegate to
75
+
* @param sendTimeLimit the send-time limit (milliseconds)
76
+
* @param bufferSizeLimit the buffer-size limit (number of bytes)
0 commit comments