public interface UserDestinationResolver
For example when a user attempts to subscribe to "/user/queue/position-updates", the destination may be resolved to "/queue/position-updates-useri9oqdfzo" yielding a unique queue name that does not collide with any other user attempting to do the same. Subsequently when messages are sent to "/user/{username}/queue/position-updates", the destination is translated to "/queue/position-updates-useri9oqdfzo".
UserDestinationMessageHandler
Modifier and Type | Method and Description |
---|---|
Set<String> |
resolveDestination(Message<?> message)
Resolve the destination of the message to one or more user/session-specific target
destinations.
|
Set<String> resolveDestination(Message<?> message)
message
- the message to resolve