public interface SimpUserRegistry
Modifier and Type | Method and Description |
---|---|
Set<SimpSubscription> |
findSubscriptions(SimpSubscriptionMatcher matcher)
Find subscriptions with the given matcher.
|
SimpUser |
getUser(String userName)
Get the user for the given name.
|
int |
getUserCount()
Return the count of all connected users.
|
Set<SimpUser> |
getUsers()
Return a snapshot of all connected users.
|
@Nullable SimpUser getUser(String userName)
userName
- the name of the user to look upnull
if not connectedSet<SimpUser> getUsers()
The returned set is a copy and will not reflect further changes.
int getUserCount()
Set<SimpSubscription> findSubscriptions(SimpSubscriptionMatcher matcher)
matcher
- the matcher to use