From 5bbc2face7f65808eafbc7602fc5be5a07b83971 Mon Sep 17 00:00:00 2001 From: Xednar <50078680+Xednar@users.noreply.github.com> Date: Wed, 14 Feb 2024 19:11:14 +0100 Subject: [PATCH] changes documentation for setUserDestinationPrefix to match getTargetDestination in DefaultUserDestinationResolver --- .../messaging/simp/config/MessageBrokerRegistry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-messaging/src/main/java/org/springframework/messaging/simp/config/MessageBrokerRegistry.java b/spring-messaging/src/main/java/org/springframework/messaging/simp/config/MessageBrokerRegistry.java index c16d51e2ba41..6ad9a2fa46e6 100644 --- a/spring-messaging/src/main/java/org/springframework/messaging/simp/config/MessageBrokerRegistry.java +++ b/spring-messaging/src/main/java/org/springframework/messaging/simp/config/MessageBrokerRegistry.java @@ -150,10 +150,10 @@ protected Collection getApplicationDestinationPrefixes() { * session as well as for others to send messages to those unique, * user-specific queues. *

For example when a user attempts to subscribe to "/user/queue/position-updates", - * the destination may be translated to "/queue/position-updatesi9oqdfzo" yielding a + * the destination may be translated 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-updatesi9oqdfzo". + * the destination is translated to "/queue/position-updates-useri9oqdfzo". *

The default prefix used to identify such destinations is "/user/". */ public MessageBrokerRegistry setUserDestinationPrefix(String destinationPrefix) {