public class EurekaAutoServiceRegistration extends Object implements org.springframework.cloud.client.serviceregistry.AutoServiceRegistration, org.springframework.context.SmartLifecycle, org.springframework.core.Ordered, org.springframework.context.event.SmartApplicationListener
Constructor and Description |
---|
EurekaAutoServiceRegistration(org.springframework.context.ApplicationContext context,
EurekaServiceRegistry serviceRegistry,
EurekaRegistration registration) |
Modifier and Type | Method and Description |
---|---|
int |
getOrder() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
onApplicationEvent(org.springframework.context.ApplicationEvent event) |
void |
onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) |
void |
onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
boolean |
supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType) |
public EurekaAutoServiceRegistration(org.springframework.context.ApplicationContext context, EurekaServiceRegistry serviceRegistry, EurekaRegistration registration)
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
getPhase
in interface org.springframework.context.SmartLifecycle
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.context.event.SmartApplicationListener
getOrder
in interface org.springframework.core.Ordered
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
supportsEventType
in interface org.springframework.context.event.SmartApplicationListener
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)
public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.