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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic EurekaAutoServiceRegistration(org.springframework.context.ApplicationContext context,
EurekaServiceRegistry serviceRegistry,
EurekaRegistration registration)
public void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic int getOrder()
getOrder in interface org.springframework.context.event.SmartApplicationListenergetOrder in interface org.springframework.core.Orderedpublic boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
supportsEventType in interface org.springframework.context.event.SmartApplicationListenerpublic 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 © 2022 Pivotal Software, Inc.. All rights reserved.