Registers a health check procedure.
The procedure is a taking a of Status as parameter. Procedures are asynchronous, and must complete or fail the given . If the future object is failed, the procedure outcome is considered as `DOWN`. If the future is completed without any object, the procedure outcome is considered as `UP`. If the future is completed with a (not-null) Status, the procedure outcome is the received status.
This method uses a 1s timeout. To configure the timeout use {@link HealthCheckHandler#register}.
Registers a health check procedure.
The procedure is a taking a of Status as parameter. Procedures are asynchronous, and must complete or fail the given . If the future object is failed, the procedure outcome is considered as `DOWN`. If the future is completed without any object, the procedure outcome is considered as `UP`. If the future is completed with a (not-null) Status, the procedure outcome is the received status.
Sets a function which will be invoked before the CheckResult gets written to clients.
Unregisters a procedure.
Creates an instance of the default implementation of the HealthCheckHandler. This function creates a new instance of HealthChecks.
Creates an instance of the default implementation of the HealthCheckHandler. This function creates a new instance of HealthChecks.
Creates an instance of the default implementation of the HealthCheckHandler.
Creates an instance of the default implementation of the HealthCheckHandler.
Generated using TypeDoc
A Vert.x Web handler on which you register health check procedure. It computes the outcome status (
UP
orDOWN
) . When the handler process a HTTP request, it computes the global outcome and build a HTTP response as follows: