类 DefaultUserSessionRegistry
- java.lang.Object
- org.springframework.messaging.simp.user.DefaultUserSessionRegistry
- 所有已实现的接口:
UserSessionRegistry
@Deprecated public class DefaultUserSessionRegistry extends Object implements UserSessionRegistry
已过时。as of 4.2 this class is no longer used, see deprecation notes onUserSessionRegistry
for more details.A default thread-safe implementation ofUserSessionRegistry
.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
构造器概要
构造器 构造器 说明 DefaultUserSessionRegistry()
已过时。
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 Set<String>
getSessionIds(String user)
已过时。Return the active session ids for the user.void
registerSessionId(String user, String sessionId)
已过时。Register an active session id for a user.void
unregisterSessionId(String userName, String sessionId)
已过时。Unregister an active session id for a user.
构造器详细资料
DefaultUserSessionRegistry
public DefaultUserSessionRegistry()
已过时。
方法详细资料
getSessionIds
public Set<String> getSessionIds(String user)
已过时。从接口复制的说明:UserSessionRegistry
Return the active session ids for the user. The returned set is a snapshot that will never be modified.- 指定者:
getSessionIds
在接口中UserSessionRegistry
- 参数:
user
- the user to look up- 返回:
- a set with 0 or more session ids, never
null
.
registerSessionId
public void registerSessionId(String user, String sessionId)
已过时。从接口复制的说明:UserSessionRegistry
Register an active session id for a user.- 指定者:
registerSessionId
在接口中UserSessionRegistry
- 参数:
user
- the user namesessionId
- the session id
unregisterSessionId
public void unregisterSessionId(String userName, String sessionId)
已过时。从接口复制的说明:UserSessionRegistry
Unregister an active session id for a user.- 指定者:
unregisterSessionId
在接口中UserSessionRegistry
- 参数:
userName
- the user namesessionId
- the session id