@Target(value=METHOD) @Retention(value=RUNTIME) @Documented public @interface SendToUser
Message
to the specified
destination(s) prepended with "/user/{username}"
where the user
name is extracted from the headers of the input message being handled.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[] |
value
One or more destinations to send a message to.
|
public abstract String[] value
SendToMethodReturnValueHandler