Interface SimpUserRegistry
- All Known Implementing Classes:
- DefaultSimpUserRegistry,- MultiServerUserRegistry
public interface SimpUserRegistry
A registry of currently connected users.
- Since:
- 4.2
- Author:
- Rossen Stoyanchev
- 
Method SummaryModifier and TypeMethodDescriptionfindSubscriptions(SimpSubscriptionMatcher matcher) Find subscriptions with the given matcher.Get the user for the given name.intReturn the count of all connected users.getUsers()Return a snapshot of all connected users.
- 
Method Details- 
getUserGet the user for the given name.- Parameters:
- userName- the name of the user to look up
- Returns:
- the user, or nullif not connected
 
- 
getUsersReturn a snapshot of all connected users.The returned set is a copy and will not reflect further changes. - Returns:
- the connected users, or an empty set if none
 
- 
getUserCountint getUserCount()Return the count of all connected users.- Returns:
- the number of connected users
- Since:
- 4.3.5
 
- 
findSubscriptionsFind subscriptions with the given matcher.- Parameters:
- matcher- the matcher to use
- Returns:
- a set of matching subscriptions, or an empty set if none
 
 
-