HealthCheckHandler
instead.@Deprecated
public interface HealthCheckCallback
EurekaClient.registerHealthCheckCallback(HealthCheckCallback)
.
Your callback will be invoked every
EurekaInstanceConfig.getLeaseRenewalIntervalInSeconds()
if the
instance is in InstanceInfo.InstanceStatus.STARTING
status, we will
delay the callback until the status changes.Returning a false to the
checkHealth() method will mark the instance
InstanceInfo.InstanceStatus.DOWN
with 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
.
Modifier and Type | Method and Description |
---|---|
boolean |
isHealthy()
Deprecated.
If false, the instance will be marked
InstanceInfo.InstanceStatus.DOWN with eureka. |
boolean isHealthy()
InstanceInfo.InstanceStatus.DOWN
with eureka. If the instance was
already marked InstanceInfo.InstanceStatus.DOWN
, returning true
here will mark the instance back to
InstanceInfo.InstanceStatus.UP
.