Annotation Type Listener

  • @Target(METHOD)
    public @interface Listener

    For server-side services, identifies callback methods that are invoked when a message is processed on server-side.

    For client-side services, identifies callback methods that are invoked with the same semantic of ClientSessionChannel.MessageListener.

    See Also:
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String[] value  
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean receiveOwnPublishes  
    • Element Detail

      • value

        java.lang.String[] value
        the list of channels to which the callback method listens to
      • receiveOwnPublishes

        boolean receiveOwnPublishes
        whether the callback method should receive messages that has itself published on channels that would trigger the invocation of callback method