Annotation Interface NacosConfigListener


@Retention(RUNTIME) @Target(METHOD) @Documented public @interface NacosConfigListener
Annotation that marks a method as a listener for Nacos Config change.
从以下版本开始:
0.2.0
作者:
Mercy
  • 元素详细资料

    • dataId

      String dataId
      Nacos Data ID.
      返回:
      required value.
    • groupId

      String groupId
      Nacos Group ID.
      返回:
      default value Constants.DEFAULT_GROUP;
      默认值:
      "DEFAULT_GROUP"
    • type

      Nacos Config type.
      返回:
      default value is ConfigType.UNSET
      默认值:
      UNSET
    • converter

      Class<? extends NacosConfigConverter> converter
      Specify Nacos configuraion convertor class to convert target type instance.
      返回:
      The implementation class of NacosConfigConverter
      默认值:
      com.alibaba.nacos.api.config.convert.NacosConfigConverter.class
    • properties

      NacosProperties properties
      The NacosProperties attribute, If not specified, it will use global Nacos Properties.
      返回:
      the default value is NacosProperties
      默认值:
      @com.alibaba.nacos.api.annotation.NacosProperties
    • timeout

      long timeout
      Maximum timeout value of execution in milliseconds, which is used to prevent long-time blocking execution impacting others.
      返回:
      default value is 1000
      默认值:
      1000L