public class ConfigWatch extends Object implements org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.SmartLifecycle
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigWatch.RefreshEventData |
| Constructor and Description |
|---|
ConfigWatch(ConsulConfigProperties properties,
com.ecwid.consul.v1.ConsulClient consul,
LinkedHashMap<String,Long> initialIndexes) |
ConfigWatch(ConsulConfigProperties properties,
com.ecwid.consul.v1.ConsulClient consul,
LinkedHashMap<String,Long> initialIndexes,
org.springframework.scheduling.TaskScheduler taskScheduler) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
void |
watchConfigKeyValues() |
public ConfigWatch(ConsulConfigProperties properties, com.ecwid.consul.v1.ConsulClient consul, LinkedHashMap<String,Long> initialIndexes)
public ConfigWatch(ConsulConfigProperties properties, com.ecwid.consul.v1.ConsulClient consul, LinkedHashMap<String,Long> initialIndexes, org.springframework.scheduling.TaskScheduler taskScheduler)
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher publisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic void start()
start in interface org.springframework.context.Lifecyclepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void watchConfigKeyValues()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.