Class DefaultUserSessionRegistry
- java.lang.Object
- org.springframework.messaging.simp.user.DefaultUserSessionRegistry
- All Implemented Interfaces:
UserSessionRegistry
@Deprecated public class DefaultUserSessionRegistry extends Object implements UserSessionRegistry
Deprecated.as of 4.2 this class is no longer used, see deprecation notes onUserSessionRegistryfor more details.A default thread-safe implementation ofUserSessionRegistry.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
Constructor Summary
Constructors Constructor Description DefaultUserSessionRegistry()Deprecated.
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Set<String>getSessionIds(String user)Deprecated.Return the active session ids for the user.voidregisterSessionId(String user, String sessionId)Deprecated.Register an active session id for a user.voidunregisterSessionId(String userName, String sessionId)Deprecated.Unregister an active session id for a user.
Constructor Detail
DefaultUserSessionRegistry
public DefaultUserSessionRegistry()
Deprecated.
Method Detail
getSessionIds
public Set<String> getSessionIds(String user)
Deprecated.Description copied from interface:UserSessionRegistryReturn the active session ids for the user. The returned set is a snapshot that will never be modified.- Specified by:
getSessionIdsin interfaceUserSessionRegistry- Parameters:
user- the user to look up- Returns:
- a set with 0 or more session ids, never
null.
registerSessionId
public void registerSessionId(String user, String sessionId)
Deprecated.Description copied from interface:UserSessionRegistryRegister an active session id for a user.- Specified by:
registerSessionIdin interfaceUserSessionRegistry- Parameters:
user- the user namesessionId- the session id
unregisterSessionId
public void unregisterSessionId(String userName, String sessionId)
Deprecated.Description copied from interface:UserSessionRegistryUnregister an active session id for a user.- Specified by:
unregisterSessionIdin interfaceUserSessionRegistry- Parameters:
userName- the user namesessionId- the session id