Package com.netflix.appinfo
Interface HealthCheckCallback
-
@Deprecated public interface HealthCheckCallbackDeprecated.UseHealthCheckHandlerinstead.Applications can implement this interface and register a callback with theEurekaClient.registerHealthCheckCallback(HealthCheckCallback).Your callback will be invoked every
EurekaInstanceConfig.getLeaseRenewalIntervalInSeconds()if the instance is inInstanceInfo.InstanceStatus.STARTINGstatus, we will delay the callback until the status changes.Returning a false to the checkHealth() method will mark the instanceInstanceInfo.InstanceStatus.DOWNwith eureka.Eureka server normally just relies on heartbeats to identify the status of an instance. Application could decide to implement their own healthpage check here or use the built-in jersey resource
HealthCheckResource.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanisHealthy()Deprecated.If false, the instance will be markedInstanceInfo.InstanceStatus.DOWNwith eureka.
-
-
-
Method Detail
-
isHealthy
boolean isHealthy()
Deprecated.If false, the instance will be markedInstanceInfo.InstanceStatus.DOWNwith eureka. If the instance was already markedInstanceInfo.InstanceStatus.DOWN, returning true here will mark the instance back toInstanceInfo.InstanceStatus.UP.- Returns:
- true if the call back returns healthy, false otherwise.
-
-