SimpUserRegistry that looks up users in a "local" user registry as
well as a set of "remote" user registries. The local registry is provided as
a constructor argument while remote registries are updated via broadcasts
handled by UserRegistryMessageHandler which in turn notifies this
registry when updates are received.
| Modifier and Type | Class and Description |
|---|---|
| private class | MultiServerUserRegistry.SessionLookup
Helper class to find user sessions across all servers. |
| private static class | MultiServerUserRegistry.TransferSimpSession
SimpSession that can be (de)serialized and broadcast to other servers. |
| private static class | MultiServerUserRegistry.TransferSimpSubscription
SimpSubscription that can be (de)serialized and broadcast to other servers. |
| private static class | MultiServerUserRegistry.TransferSimpUser
SimpUser that can be (de)serialized and broadcast to other servers. |
| private static class | MultiServerUserRegistry.UserRegistrySnapshot
Holds a copy of a SimpUserRegistry for the purpose of broadcasting to and receiving broadcasts from other application servers. |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final String | |
| private final SimpUserRegistry | |
| private final Map | |
| private final MultiServerUserRegistry. |
| Access | Constructor and Description |
|---|---|
| public | MultiServerUserRegistry(SimpUserRegistry localRegistry)
Create an instance wrapping the local user registry. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public Set | findSubscriptions(SimpSubscriptionMatcher
the matcher to use matcher)Implements org. |
| private static String | |
| pack-priv Object | |
| public int | getOrder()
Overrides default org. |
| public SimpUser | getUser(String
the name of the user to look up userName)Implements org. |
| public int | getUserCount()
Implements org. |
| public Set | getUsers()
Implements org. |
| public void | onApplicationEvent(ApplicationEvent
the event to respond to event)Implements org. |
| pack-priv void | |
| public boolean | supportsEventType(Class<? extends ApplicationEvent>
the event type (never eventType)null)Implements org. |
| public boolean | supportsSourceType(Class<?>
the source type, or sourceType)null if no sourceOverrides default org. |
| public String |