public class NacosContextRefresher extends Object implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
NacosContextRefresher(NacosConfigManager nacosConfigManager,
NacosRefreshHistory refreshHistory) |
| Modifier and Type | Method and Description |
|---|---|
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)
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationReadyEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationReadyEvent>public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic NacosConfigProperties getNacosConfigProperties()
public NacosContextRefresher setNacosConfigProperties(NacosConfigProperties nacosConfigProperties)
public boolean isRefreshEnabled()
public static long getRefreshCount()
public static void refreshCountIncrement()
Copyright © 2023 Pivotal Software, Inc.. All rights reserved.