public interface WebSocketSessionStore
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSession(org.springframework.web.socket.WebSocketSession session)
添加一个 session
|
Collection<Object> |
getSessionKeys()
获取所有的 sessionKeys
|
Collection<org.springframework.web.socket.WebSocketSession> |
getSessions()
获取当前所有在线的 wsSessions
|
Collection<org.springframework.web.socket.WebSocketSession> |
getSessions(Object sessionKey)
根据指定的 sessionKey 获取对应的 wsSessions
|
void |
removeSession(org.springframework.web.socket.WebSocketSession session)
删除一个 session
|
void addSession(org.springframework.web.socket.WebSocketSession session)
session - 待添加的 WebSocketSessionvoid removeSession(org.springframework.web.socket.WebSocketSession session)
session - WebSocketSessionCollection<org.springframework.web.socket.WebSocketSession> getSessions()
Collection<org.springframework.web.socket.WebSocketSession> getSessions(Object sessionKey)
sessionKey - wsSession 标识Collection<Object> getSessionKeys()
Copyright © 2023. All rights reserved.