Class EurekaAutoServiceRegistration
- java.lang.Object
-
- org.springframework.cloud.netflix.eureka.serviceregistry.EurekaAutoServiceRegistration
-
- All Implemented Interfaces:
EventListener,org.springframework.cloud.client.serviceregistry.AutoServiceRegistration,org.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>,org.springframework.context.event.SmartApplicationListener,org.springframework.context.Lifecycle,org.springframework.context.Phased,org.springframework.context.SmartLifecycle,org.springframework.core.Ordered
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
- Author:
- Dave Syer, Spencer Gibb, Jon Schneider, Jakub Narloch, Raiyan Raiyan
-
-
Constructor Summary
Constructors Constructor Description EurekaAutoServiceRegistration(org.springframework.context.ApplicationContext context, EurekaServiceRegistry serviceRegistry, EurekaRegistration registration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()intgetPhase()booleanisAutoStartup()booleanisRunning()voidonApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)voidonApplicationEvent(org.springframework.context.ApplicationEvent event)voidonApplicationEvent(org.springframework.context.event.ContextClosedEvent event)voidstart()voidstop()voidstop(Runnable callback)booleansupportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
-
-
-
Constructor Detail
-
EurekaAutoServiceRegistration
public EurekaAutoServiceRegistration(org.springframework.context.ApplicationContext context, EurekaServiceRegistry serviceRegistry, EurekaRegistration registration)
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()
- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()
- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-
getPhase
public int getPhase()
- Specified by:
getPhasein interfaceorg.springframework.context.Phased- Specified by:
getPhasein interfaceorg.springframework.context.SmartLifecycle
-
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartupin interfaceorg.springframework.context.SmartLifecycle
-
stop
public void stop(Runnable callback)
- Specified by:
stopin interfaceorg.springframework.context.SmartLifecycle
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered- Specified by:
getOrderin interfaceorg.springframework.context.event.SmartApplicationListener
-
supportsEventType
public boolean supportsEventType(Class<? extends org.springframework.context.ApplicationEvent> eventType)
- Specified by:
supportsEventTypein interfaceorg.springframework.context.event.SmartApplicationListener
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.ApplicationEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.ApplicationEvent>
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.web.context.WebServerInitializedEvent event)
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event)
-
-