Interface SimpUserRegistry
- All Known Implementing Classes:
DefaultSimpUserRegistry
,MultiServerUserRegistry
public interface SimpUserRegistry
A registry of currently connected users.
- Since:
- 4.2
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionfindSubscriptions
(SimpSubscriptionMatcher matcher) Find subscriptions with the given matcher.Get the user for the given name.int
Return the count of all connected users.getUsers()
Return a snapshot of all connected users.
-
Method Details
-
getUser
-
getUsers
-
getUserCount
int getUserCount()Return the count of all connected users.- Returns:
- the number of connected users
- Since:
- 4.3.5
-
findSubscriptions
Find subscriptions with the given matcher.- Parameters:
matcher
- the matcher to use- Returns:
- a set of matching subscriptions, or an empty set if none
-