Interface HealthCheckUpdateHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(ServiceRequestContext ctx, HttpRequest req) Determines if the healthiness of theServer
needs to be changed or not from the givenHttpRequest
.
-
Method Details
-
handle
CompletionStage<HealthCheckUpdateResult> handle(ServiceRequestContext ctx, HttpRequest req) throws Exception Determines if the healthiness of theServer
needs to be changed or not from the givenHttpRequest
.- Returns:
- A
CompletionStage
which is completed withHealthCheckUpdateResult
. TheCompletionStage
can also be completed with an exception, such asHttpStatusException
andHttpResponseException
to send a specific HTTP response to the client. - Throws:
Exception
-