public class UserSessionRegistryAdapter extends java.lang.Object implements SimpUserRegistry
UserSessionRegistry
.Modifier and Type | Class and Description |
---|---|
private static class |
UserSessionRegistryAdapter.SimpleSimpSession |
private static class |
UserSessionRegistryAdapter.SimpleSimpUser |
Modifier and Type | Field and Description |
---|---|
private UserSessionRegistry |
delegate |
Constructor and Description |
---|
UserSessionRegistryAdapter(UserSessionRegistry delegate) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<SimpSubscription> |
findSubscriptions(SimpSubscriptionMatcher matcher)
Find subscriptions with the given matcher.
|
SimpUser |
getUser(java.lang.String userName)
Get the user for the given name.
|
java.util.Set<SimpUser> |
getUsers()
Return a snapshot of all connected users.
|
private final UserSessionRegistry delegate
public UserSessionRegistryAdapter(UserSessionRegistry delegate)
public SimpUser getUser(java.lang.String userName)
SimpUserRegistry
getUser
in interface SimpUserRegistry
userName
- the name of the user to look upnull
if not connectedpublic java.util.Set<SimpUser> getUsers()
SimpUserRegistry
getUsers
in interface SimpUserRegistry
public java.util.Set<SimpSubscription> findSubscriptions(SimpSubscriptionMatcher matcher)
SimpUserRegistry
findSubscriptions
in interface SimpUserRegistry
matcher
- the matcher to use