vertx / io.vertx.ext.healthchecks / HealthChecks / invoke

invoke

abstract fun invoke(resultHandler: Handler<JsonObject>): HealthChecks

Invokes the registered procedures and computes the outcome.

Parameters

resultHandler - the result handler, must not be null. The handler received the computed JsonObject.

Return
the current HealthChecks

abstract fun invoke(name: String, resultHandler: Handler<AsyncResult<JsonObject>>): HealthChecks

Invokes the registered procedure with the given name and sub-procedures. It computes the overall outcome.

Parameters

resultHandler - the result handler, must not be null. The handler received an AsyncResult marked as failed if the procedure with the given name cannot be found or invoked.

Return
the current HealthChecks