@FunctionalInterface public interface HealthCheckUpdateHandler
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<HealthCheckUpdateResult> |
handle(ServiceRequestContext ctx,
HttpRequest req)
Determines if the healthiness of the
Server needs to be changed or not from the given
HttpRequest. |
CompletionStage<HealthCheckUpdateResult> handle(ServiceRequestContext ctx, HttpRequest req) throws Exception
Server needs to be changed or not from the given
HttpRequest.CompletionStage which is completed with HealthCheckUpdateResult.
The CompletionStage can also be completed with an exception, such as
HttpStatusException and HttpResponseException to send a specific
HTTP response to the client.ExceptionCopyright © 2020 LeanCloud. All rights reserved.