public interface UserDestinationResolver
When a user attempts to subscribe to "/user/queue/position-updates", the "/user" prefix is removed and a unique suffix added, resulting in something like "/queue/position-updates-useri9oqdfzo" where the suffix is based on the user's session and ensures it does not collide with any other users attempting to subscribe to "/user/queue/position-updates".
When a message is sent to a user with a destination such as "/user/{username}/queue/position-updates", the "/user/{username}" prefix is removed and the suffix added, resulting in something like "/queue/position-updates-useri9oqdfzo".
UserDestinationMessageHandler
Modifier and Type | Method and Description |
---|---|
Set<String> |
resolveDestination(Message<?> message)
Resolve the destination of the message to a set of actual target destinations
to use.
|
Set<String> resolveDestination(Message<?> message)
message
- the message to resolve