Package org.springframework.messaging.simp.user
Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.
Also included is SimpUserRegistry
for keeping track of connected user sessions.
Interface Summary Interface Description DestinationUserNameProvider SimpSession Represents a session of connected user.SimpSubscription Represents a subscription within a user session.SimpSubscriptionMatcher A strategy for matching subscriptions.SimpUser Represents a connected user.SimpUserRegistry A registry of currently connected users.UserDestinationResolver A strategy for resolving a "user" destination by translating it to one or more actual destinations one per active user session.UserSessionRegistry Deprecated. in favor ofSimpUserRegistry
in combination withApplicationListener
listening forAbstractSubProtocolEvent
events.Class Summary Class Description DefaultUserDestinationResolver A default implementation ofUserDestinationResolver
that relies on aSimpUserRegistry
to find active sessions for a user.DefaultUserSessionRegistry Deprecated. as of 4.2 this class is no longer used, see deprecation notes onUserSessionRegistry
for more details.MultiServerUserRegistry SimpUserRegistry
that looks up users in a "local" user registry as well as a set of "remote" user registries.UserDestinationMessageHandler MessageHandler
with support for "user" destinations.UserDestinationResult Contains the result from parsing a "user" destination from a source message and translating it to target destinations (one per active user session).UserRegistryMessageHandler MessageHandler
that handles user registry broadcasts from other application servers and periodically broadcasts the content of the local user registry.UserSessionRegistryAdapter An adapter that allows aUserSessionRegistry
, which is deprecated in favor ofSimpUserRegistry
, to be used as aSimpUserRegistry
.