|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HealthCheckCallback
Applications can implement this interface and register a callback with the
DiscoveryClient.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.
| Method Summary | |
|---|---|
boolean |
isHealthy()
If false, the instance will be marked InstanceInfo.InstanceStatus.DOWN with eureka. |
| Method Detail |
|---|
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||