package com.njzscloud.common.mqtt.support;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 将函数标记为 MQTT 消息处理函数，然后将类注册为 Spring Bean 即可
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface MqttListener {
    String topic();

    int qos() default 0;
}
