Annotation Interface NacosConfigListener
Annotation that marks a method as a listener for Nacos Config change.
- 从以下版本开始:
- 0.2.0
- 作者:
- Mercy
-
必需元素概要
所需元素 -
可选元素概要
可选元素修饰符和类型可选元素说明Class<? extends NacosConfigConverter>SpecifyNacos configuraion convertorclass to convert target type instance.Nacos Group ID.TheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.longMaximum timeout value of execution in milliseconds, which is used to prevent long-time blocking execution impacting others.Nacos Config type.
-
元素详细资料
-
dataId
String dataIdNacos Data ID.- 返回:
- required value.
-
-
-
groupId
String groupIdNacos Group ID.- 返回:
- default value
Constants.DEFAULT_GROUP;
- 默认值:
- "DEFAULT_GROUP"
-
type
ConfigType typeNacos Config type.- 返回:
- default value is
ConfigType.UNSET
- 默认值:
- UNSET
-
converter
Class<? extends NacosConfigConverter> converterSpecifyNacos configuraion convertorclass to convert target type instance.- 返回:
- The implementation class of
NacosConfigConverter
- 默认值:
- com.alibaba.nacos.api.config.convert.NacosConfigConverter.class
-
properties
NacosProperties propertiesTheNacosPropertiesattribute, If not specified, it will use global Nacos Properties.- 返回:
- the default value is
NacosProperties
- 默认值:
- @com.alibaba.nacos.api.annotation.NacosProperties
-
timeout
long timeoutMaximum timeout value of execution in milliseconds, which is used to prevent long-time blocking execution impacting others.- 返回:
- default value is 1000
- 默认值:
- 1000L
-