Interface UserSessionRegistry
- All Known Implementing Classes:
DefaultUserSessionRegistry
@Deprecated public interface UserSessionRegistry
Deprecated.in favor ofSimpUserRegistry
in combination withApplicationListener
listening forAbstractSubProtocolEvent
events.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.- Since:
- 4.0
- Author:
- Rossen Stoyanchev
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description Set<String>
getSessionIds(String userName)
Deprecated.Return the active session ids for the user.void
registerSessionId(String userName, 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.
Method Detail
getSessionIds
Set<String> getSessionIds(String userName)
Deprecated.Return the active session ids for the user. The returned set is a snapshot that will never be modified.- Parameters:
userName
- the user to look up- Returns:
- a set with 0 or more session ids, never
null
.
registerSessionId
void registerSessionId(String userName, String sessionId)
Deprecated.Register an active session id for a user.- Parameters:
userName
- the user namesessionId
- the session id
unregisterSessionId
void unregisterSessionId(String userName, String sessionId)
Deprecated.Unregister an active session id for a user.- Parameters:
userName
- the user namesessionId
- the session id