Annotation Interface ChenileMqtt


@Retention(RUNTIME) @Target(TYPE) public @interface ChenileMqtt
Annotate a class in a Chenile service controller to make it listen to MQ-TT topics.
This will bind the topic to an invocation of this service/operation. A good convention to follow is to use the form /chenile/serviceName/operationName as the name of the topic. This will be the default topic name if a topic is not explicitly specified.
When messages come to the topic, the service/operation is invoked.
Payload is the content of the message.
Headers are from UserProperty objects that are attached to the message.
  • Element Details

    • subscribeTopic

      String subscribeTopic
      Default:
      ""
    • publishTopic

      String publishTopic
      Default:
      ""
    • qos

      int qos
      Default:
      2