@Singleton
public class EurekaUpStatusResolver
extends java.lang.Object
Constructor and Description |
---|
EurekaUpStatusResolver(EurekaClient client,
com.netflix.eventbus.spi.EventBus eventBus) |
Modifier and Type | Method and Description |
---|---|
long |
getChangeCount() |
InstanceInfo.InstanceStatus |
getStatus() |
void |
init() |
void |
onStatusChange(StatusChangeEvent event) |
void |
shutdown() |
@Inject public EurekaUpStatusResolver(EurekaClient client, com.netflix.eventbus.spi.EventBus eventBus)
client
- the eurekaClienteventBus
- the eventBus to publish eureka status change eventspublic void onStatusChange(StatusChangeEvent event)
@PostConstruct public void init()
@PreDestroy public void shutdown()
public InstanceInfo.InstanceStatus getStatus()
public long getChangeCount()