注释类型 SendTo


  • @Target({METHOD,TYPE})
    @Retention(RUNTIME)
    @Documented
    public @interface SendTo
    Annotation that indicates a method's return value should be converted to a Message if necessary and sent to the specified destination.

    In a typical request/reply scenario, the incoming Message may convey the destination to use for the reply. In that case, that destination should take precedence.

    The annotation may also be placed at class-level if the provider supports it to indicate that all related methods should use this destination if none is specified otherwise.

    从以下版本开始:
    4.0
    作者:
    Rossen Stoyanchev, Stephane Nicoll
    • 可选元素概要

      可选元素 
      修饰符和类型可选元素说明
      String[]value
      The destination for a message created from the return value of a method.
    • 元素详细资料

      • value

        String[] value
        The destination for a message created from the return value of a method.
        默认值:
        {}