wangmengmeng
2024-12-24 24432a361d5c6bd6f3d8c008693e9f1155d62517
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package com.dji.sdk.websocket;
 
import org.springframework.web.socket.WebSocketSession;
import org.springframework.web.socket.handler.ConcurrentWebSocketSessionDecorator;
 
/**
 * @author sean.zhou
 * @version 0.1
 * @date 2021/11/24
 */
public class ConcurrentWebSocketSession extends ConcurrentWebSocketSessionDecorator {
 
    private static final int SEND_BUFFER_SIZE_LIMIT = 1024 * 1024;
 
    private static final int SEND_TIME_LIMIT = 1000;
 
    private ConcurrentWebSocketSession(WebSocketSession delegate, int sendTimeLimit, int bufferSizeLimit) {
        super(delegate, sendTimeLimit, bufferSizeLimit);
    }
 
    ConcurrentWebSocketSession(WebSocketSession delegate) {
        this(delegate, SEND_TIME_LIMIT, SEND_BUFFER_SIZE_LIMIT);
    }
 
}