注释类型 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
-
-
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 Stringcmd调用接口的字符串 The string used to invoke methodStringdescription方法描述信息 Description information of methoddoubleversion接口的版本号 The version of the method
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 intminEvent返回结果的改变次数 Number of changes of return valueintminPeriod调用最小间隔,单位是秒 Minimum interval of call, unit is secondsCmdPrioritypriority接口优先级 interface priorityStringscope接口权限级别,参考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
-
-
-
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"
-
-
-
priority
CmdPriority priority
接口优先级 interface priority- 默认值:
- network.nerve.core.rpc.model.CmdPriority.DEFAULT
-
-