public interface UserDestinationResolver
For messages sent to a user, the destination must contain the name of the target user, The name, extracted from the destination, is used to look up the active user session(s), and then translate the destination accordingly.
For SUBSCRIBE and UNSUBSCRIBE messages, the user is the user associated with the message. In other words the destination does not contain the user name.
See the documentation on implementations for specific examples.
UserDestinationResult resolveDestination(Message<?> message)
If the message is SUBSCRIBE/UNSUBSCRIBE, the returned set will contain a single translated target destination.
If the message represents data being sent to a user, the returned set may contain multiple target destinations, one for each active user session.
message- the message with a user destination to be resolved
nullif the resolution fails (e.g. not a user destination, or no user info available, etc)