public class UserSessionRegistryAdapter extends Object implements SimpUserRegistry
UserSessionRegistry
.Constructor and Description |
---|
UserSessionRegistryAdapter(UserSessionRegistry delegate) |
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.
|
Set<SimpUser> |
getUsers()
Return a snapshot of all connected users.
|
public UserSessionRegistryAdapter(UserSessionRegistry delegate)
public SimpUser getUser(String userName)
SimpUserRegistry
getUser
in interface SimpUserRegistry
userName
- the name of the user to look upnull
if not connectedpublic Set<SimpUser> getUsers()
SimpUserRegistry
getUsers
in interface SimpUserRegistry
public Set<SimpSubscription> findSubscriptions(SimpSubscriptionMatcher matcher)
SimpUserRegistry
findSubscriptions
in interface SimpUserRegistry
matcher
- the matcher to use