接口 UserSessionRegistry
- 所有已知实现类:
DefaultUserSessionRegistry
@Deprecated public interface UserSessionRegistry
已过时。in favor ofSimpUserRegistryin combination withApplicationListenerlistening forAbstractSubProtocolEventevents.A contract for adding and removing user sessions.As of 4.2, this interface is replaced by
SimpUserRegistry, exposing methods to return all registered users as well as to provide more extensive information for each user.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 Set<String>getSessionIds(String userName)已过时。Return the active session ids for the user.voidregisterSessionId(String userName, String sessionId)已过时。Register an active session id for a user.voidunregisterSessionId(String userName, String sessionId)已过时。Unregister an active session id for a user.
方法详细资料
getSessionIds
Set<String> getSessionIds(String userName)
已过时。Return the active session ids for the user. The returned set is a snapshot that will never be modified.- 参数:
userName- the user to look up- 返回:
- a set with 0 or more session ids, never
null.
registerSessionId
void registerSessionId(String userName, String sessionId)
已过时。Register an active session id for a user.- 参数:
userName- the user namesessionId- the session id
unregisterSessionId
void unregisterSessionId(String userName, String sessionId)
已过时。Unregister an active session id for a user.- 参数:
userName- the user namesessionId- the session id