程序包 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.
接口概要 接口 说明 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.类概要 类 说明 DefaultUserDestinationResolver A default implementation ofUserDestinationResolver
that relies on aSimpUserRegistry
to find active sessions for a user.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.