@Configuration @EnableConfigurationProperties @ConditionalOnClass(value=com.netflix.discovery.EurekaClientConfig.class) @ConditionalOnProperty(value="eureka.client.enabled", matchIfMissing=true) public class EurekaDiscoveryClientConfiguration extends Object implements org.springframework.context.SmartLifecycle, org.springframework.core.Ordered
Modifier and Type | Class and Description |
---|---|
protected static class |
EurekaDiscoveryClientConfiguration.EurekaClientConfigurationRefresher |
protected static class |
EurekaDiscoveryClientConfiguration.EurekaHealthCheckHandlerConfiguration |
protected static class |
EurekaDiscoveryClientConfiguration.EurekaHealthIndicatorConfiguration |
Constructor and Description |
---|
EurekaDiscoveryClientConfiguration() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) |
void |
onApplicationEvent(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
public void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public int getOrder()
getOrder
in interface org.springframework.core.Ordered
@EventListener(value=org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent.class) public void onApplicationEvent(org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent event)
@EventListener(value=org.springframework.context.event.ContextClosedEvent.class) public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.