package |
Default |
---|
__construct()
create( $arg0) : \io\vertx\jphp\ext\healthchecks\HealthChecks
invoke( $arg0, $arg1 = null) : $this
param $resultHandler [callable] the result handler, must not be {@code null}. The handler received the computed \JsonObject. invoke($resultHandler)
Invokes the registered procedure with the given name and sub-procedures. It computes the overall outcome.
param $name [string] param $resultHandler [callable] the result handler, must not be {@code null}. The handler received an \AsyncResult marked as failed if the procedure with the given name cannot be found or invoked. invoke($name, $resultHandler)
callable | string
callable
$this
the current {@link HealthChecks}
register( $arg0, $arg1, $arg2 = null) : \io\vertx\jphp\ext\healthchecks\HealthChecks
The procedure is a taking a of @see \io\vertx\jphp\ext\healthchecks\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) @see \io\vertx\jphp\ext\healthchecks\Status, the procedure outcome is the received status.
This method uses a 1s timeout. Use @see \io\vertx\jphp\ext\healthchecks\HealthChecks::register to configure the timeout. param $name [string] the name of the procedure, must not be {@code null} or empty param $procedure [callable] the procedure, must not be {@code null} register($name, $procedure) Registers a health check procedure.
The procedure is a taking a of @see \io\vertx\jphp\ext\healthchecks\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) @see \io\vertx\jphp\ext\healthchecks\Status, the procedure outcome is the received status. param $name [string] the name of the procedure, must not be {@code null} or empty param $timeout [integer] the procedure timeout in milliseconds param $procedure [callable] the procedure, must not be {@code null} register($name, $timeout, $procedure)
string
callable | integer
callable
\io\vertx\jphp\ext\healthchecks\HealthChecks
the current {@link HealthChecks}
unregister( $arg0) : $this
string
$this
the current {@link HealthChecks}