类 NacosContextRefresher

java.lang.Object
com.alibaba.cloud.nacos.refresh.NacosContextRefresher
所有已实现的接口:
EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>

public class NacosContextRefresher extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>, org.springframework.context.ApplicationContextAware
On application start up, NacosContextRefresher add nacos listeners to all application level dataIds, when there is a change in the data, listeners will refresh configurations.
作者:
juven.xuxb, pbting, freeman
  • 构造器详细资料

  • 方法详细资料

    • getRefreshCount

      public static long getRefreshCount()
    • refreshCountIncrement

      public static void refreshCountIncrement()
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
      指定者:
      onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
      指定者:
      setApplicationContext 在接口中 org.springframework.context.ApplicationContextAware
    • getNacosConfigProperties

      public NacosConfigProperties getNacosConfigProperties()
    • setNacosConfigProperties

      public NacosContextRefresher setNacosConfigProperties(NacosConfigProperties nacosConfigProperties)
    • isRefreshEnabled

      public boolean isRefreshEnabled()