Class HealthCheckHandler

  • All Implemented Interfaces:
    Handler<RoutingContext>

    public class HealthCheckHandler
    extends Object
    implements Handler<RoutingContext>
    A Vert.x Web handler on which you register health check procedure. It computes the outcome status (`UP` or `DOWN`) . When the handler process a HTTP request, it computes the global outcome and build a HTTP response as follows:

    • 204 - status is `UP` but no procedures installed (no payload)
    • 200 - status is `UP`, the payload contains the result of the installed procedures
    • 503 - status is `DOWN`, the payload contains the result of the installed procedures
    • 500 - status is `DOWN`, the payload contains the result of the installed procedures, one of the procedure has failed

    NOTE: This class has been automatically generated from the original non RX-ified interface using Vert.x codegen.