BaseSession使用安全list
This commit is contained in:
parent
2bd1d6815b
commit
166f2db0a0
@ -6,6 +6,8 @@ import lombok.Data;
|
||||
import org.springframework.web.reactive.socket.WebSocketMessage;
|
||||
import org.springframework.web.reactive.socket.WebSocketSession;
|
||||
import reactor.core.publisher.FluxSink;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
|
||||
@ -82,6 +84,7 @@ public class BaseSession {
|
||||
|
||||
/**
|
||||
* 临时记录发送给客户端resp
|
||||
* 语音合成时使用
|
||||
*/
|
||||
List<BaseMessageResp> respList = new ArrayList<>(10);
|
||||
List<BaseMessageResp> respList = Collections.synchronizedList(new ArrayList<>(10));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user