public class NacosContextRefresher extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>, org.springframework.context.ApplicationContextAware
| 构造器和说明 |
|---|
NacosContextRefresher(NacosConfigManager nacosConfigManager,
NacosRefreshHistory refreshHistory) |
NacosContextRefresher(NacosRefreshProperties refreshProperties,
NacosRefreshHistory refreshHistory,
com.alibaba.nacos.api.config.ConfigService configService)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
NacosConfigProperties |
getNacosConfigProperties() |
static long |
getRefreshCount() |
boolean |
isRefreshEnabled() |
void |
onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event) |
static void |
refreshCountIncrement() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
NacosContextRefresher |
setNacosConfigProperties(NacosConfigProperties nacosConfigProperties) |
public NacosContextRefresher(NacosConfigManager nacosConfigManager, NacosRefreshHistory refreshHistory)
@Deprecated public NacosContextRefresher(NacosRefreshProperties refreshProperties, NacosRefreshHistory refreshHistory, com.alibaba.nacos.api.config.ConfigService configService)
NacosContextRefresher(NacosConfigManager, NacosRefreshHistory).refreshProperties - refreshPropertiesrefreshHistory - refreshHistoryconfigService - configServicepublic void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
onApplicationEvent 在接口中 org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext 在接口中 org.springframework.context.ApplicationContextAwarepublic NacosConfigProperties getNacosConfigProperties()
public NacosContextRefresher setNacosConfigProperties(NacosConfigProperties nacosConfigProperties)
public boolean isRefreshEnabled()
public static long getRefreshCount()
public static void refreshCountIncrement()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.