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 onUserSessionRegistry
for 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.void
registerSessionId(String user, String sessionId)
Deprecated.Register an active session id for a user.void
unregisterSessionId(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:UserSessionRegistry
Return the active session ids for the user. The returned set is a snapshot that will never be modified.- Specified by:
getSessionIds
in 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:UserSessionRegistry
Register an active session id for a user.- Specified by:
registerSessionId
in interfaceUserSessionRegistry
- Parameters:
user
- the user namesessionId
- the session id
unregisterSessionId
public void unregisterSessionId(String userName, String sessionId)
Deprecated.Description copied from interface:UserSessionRegistry
Unregister an active session id for a user.- Specified by:
unregisterSessionId
in interfaceUserSessionRegistry
- Parameters:
userName
- the user namesessionId
- the session id