接口 UserDestinationResolver
- 所有已知实现类:
DefaultUserDestinationResolver
public interface UserDestinationResolver
A strategy for resolving a "user" destination by translating it to one or more actual destinations one per active user session. When sending a message to a user destination, the destination must contain the user name so it may be extracted and used to look up the user sessions. When subscribing to a user destination, the destination does not have to contain the user's own name. We simply use the current session.See implementation classes and the documentation for example destinations.
- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
- 另请参阅:
DefaultUserDestinationResolver
,UserDestinationMessageHandler
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 UserDestinationResult
resolveDestination(Message<?> message)
Resolve the given message with a user destination to one or more messages with actual destinations, one for each active user session.
方法详细资料
resolveDestination
UserDestinationResult resolveDestination(Message<?> message)
Resolve the given message with a user destination to one or more messages with actual destinations, one for each active user session.- 参数:
message
- the message to try to resolve- 返回:
- 0 or more target messages (one for each active session), or
null
if the source message does not contain a user destination.