注释类型 CmdAnnotation


  • @Target(METHOD)
    @Retention(RUNTIME)
    public @interface CmdAnnotation
    拥有该注解的方法会被认为:对外提供的接口 The methods which contain this annotation would be considered: the interface provided to the outside world
    作者:
    tangyi
    • 必需元素概要

      所需元素 
      修饰符和类型 必需的元素 说明
      String cmd
      调用接口的字符串 The string used to invoke method
      String description
      方法描述信息 Description information of method
      double version
      接口的版本号 The version of the method
    • 可选元素概要

      可选元素 
      修饰符和类型 可选元素 说明
      int minEvent
      返回结果的改变次数 Number of changes of return value
      int minPeriod
      调用最小间隔,单位是秒 Minimum interval of call, unit is seconds
      CmdPriority priority
      接口优先级 interface priority
      String scope
      接口权限级别,参考Constants.PUBLIC的注释,默认为PRIVATE Interface permission level, refer to Constants.PUBLIC's annotation, default value is PRIVATE
    • 元素详细资料

      • cmd

        String cmd
        调用接口的字符串 The string used to invoke method
        返回:
        String
      • version

        double version
        接口的版本号 The version of the method
        返回:
        double
      • description

        String description
        方法描述信息 Description information of method
        返回:
        String
      • scope

        String scope
        接口权限级别,参考Constants.PUBLIC的注释,默认为PRIVATE Interface permission level, refer to Constants.PUBLIC's annotation, default value is PRIVATE
        返回:
        String
        默认值:
        "public"
      • minEvent

        int minEvent
        返回结果的改变次数 Number of changes of return value
        返回:
        int
        默认值:
        0
      • minPeriod

        int minPeriod
        调用最小间隔,单位是秒 Minimum interval of call, unit is seconds
        返回:
        int
        默认值:
        0
      • priority

        CmdPriority priority
        接口优先级 interface priority
        默认值:
        network.nerve.core.rpc.model.CmdPriority.DEFAULT