@Target(value={TYPE,METHOD}) @Retention(value=RUNTIME) @Documented public @interface SendToUser
Message to the specified destination(s)
 further prepended with "/user/{username}" where the user name
 is extracted from the headers of the input message being handled.
 Both @SendTo and @SendToUser may be used on the same method
 in which case a message is sent to the destinations of both annotations.
 
This annotation may be placed class-level in which case it is inherited
 by methods of the class. At the same time, method-level @SendTo or
 @SendToUser annotations override any such at the class level.
SendToMethodReturnValueHandler, 
UserDestinationMessageHandler, 
SimpMessageHeaderAccessor.getUser()| Modifier and Type | Optional Element and Description | 
|---|---|
boolean | 
broadcast
Whether messages should be sent to all sessions associated with the user
 or only to the session of the input message being handled. 
 | 
String[] | 
destinations
One or more destinations to send a message to. 
 | 
String[] | 
value
Alias for  
destinations(). | 
@AliasFor(value="destinations") public abstract String[] value
destinations().destinations()@AliasFor(value="value") public abstract String[] destinations
If left unspecified, a default destination is selected based on the destination of the input message being handled.
value(), 
SendToMethodReturnValueHandler