注释类型 Topic


  • @Documented
    @Retention(RUNTIME)
    @Target(TYPE)
    public @interface Topic
    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      java.lang.String[] value  
    • 元素详细资料

      • value

        java.lang.String[] value
      • clientId

        java.lang.String clientId
        默认值:
        "uuid"
      • qos

        io.netty.handler.codec.mqtt.MqttQoS[] qos
        默认值:
        {io.netty.handler.codec.mqtt.MqttQoS.AT_LEAST_ONCE}
      • keepAlive

        int keepAlive
        默认值:
        20
      • timeout

        int timeout
        默认值:
        10
      • cleanSession

        boolean cleanSession
        默认值:
        false
      • isSsl

        boolean isSsl
        默认值:
        false