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)
SimpUserRegistrygetUser in interface SimpUserRegistryuserName - the name of the user to look upnull if not connectedpublic Set<SimpUser> getUsers()
SimpUserRegistrygetUsers in interface SimpUserRegistrypublic Set<SimpSubscription> findSubscriptions(SimpSubscriptionMatcher matcher)
SimpUserRegistryfindSubscriptions in interface SimpUserRegistrymatcher - the matcher to use