注释类型 NacosConfigListener
-
@Retention(RUNTIME) @Target(METHOD) @Documented public @interface NacosConfigListenerAnnotation that marks a method as a listener for Nacos Config change.- 从以下版本开始:
- 0.2.0
- 作者:
- Mercy
-
-
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 java.lang.StringdataIdNacos Data ID.
-
可选元素概要
可选元素 修饰符和类型 可选元素 说明 java.lang.Class<? extends NacosConfigConverter>converterSpecifyNacos configuraion convertorclass to convert target type instance.java.lang.StringgroupIdNacos Group ID.NacosPropertiespropertiesTheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.longtimeoutMaximum timeout value of execution in milliseconds, which is used to prevent long-time blocking execution impacting others.ConfigTypetypeNacos Config type.
-
-
-
-
groupId
java.lang.String groupId
Nacos Group ID.- 返回:
- default value
Constants.DEFAULT_GROUP;
- 默认值:
- "DEFAULT_GROUP"
-
-
-
type
ConfigType type
Nacos Config type.- 返回:
- default value is
ConfigType.UNSET
- 默认值:
- com.alibaba.nacos.api.config.ConfigType.UNSET
-
-
-
converter
java.lang.Class<? extends NacosConfigConverter> converter
SpecifyNacos configuraion convertorclass to convert target type instance.- 返回:
- The implementation class of
NacosConfigConverter
- 默认值:
- com.alibaba.nacos.api.config.convert.NacosConfigConverter.class
-
-
-
properties
NacosProperties properties
TheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.- 返回:
- the default value is
NacosProperties
- 默认值:
- @com.alibaba.nacos.api.annotation.NacosProperties
-
-