Class HealthChecks
- All Implemented Interfaces:
MutinyDelegate
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHealthChecks
(io.vertx.ext.healthchecks.HealthChecks delegate) HealthChecks
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.CheckResult>
Invokes the registered procedures.io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.CheckResult>
checkStatus
(String name) Invokes the registered procedure with the given name and sub-procedures.io.vertx.ext.healthchecks.CheckResult
Blocking variant ofcheckStatus()
.io.vertx.ext.healthchecks.CheckResult
checkStatusAndAwait
(String name) Blocking variant ofcheckStatus(String)
.void
Variant ofcheckStatus()
that ignores the result of the operation.void
checkStatusAndForget
(String name) Variant ofcheckStatus(String)
that ignores the result of the operation.static HealthChecks
boolean
io.vertx.ext.healthchecks.HealthChecks
int
hashCode()
io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject>
Invokes the registered procedure with the given name and sub-procedures.io.vertx.core.json.JsonObject
invokeAndAwait
(String name) Blocking variant ofinvoke(String)
.invokeAndForget
(String name) Variant ofinvoke(String)
that ignores the result of the operation.static HealthChecks
newInstance
(io.vertx.ext.healthchecks.HealthChecks arg) register
(String name, long timeout, io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.Status> procedure) toString()
unregister
(String name)
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
HealthChecks
public HealthChecks(io.vertx.ext.healthchecks.HealthChecks delegate) -
HealthChecks
-
-
Method Details
-
getDelegate
public io.vertx.ext.healthchecks.HealthChecks getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
create
- Parameters:
vertx
- the instance of Vert.x, must not benull
- Returns:
- the created instance
-
register
public HealthChecks register(String name, io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.Status> procedure) - Parameters:
name
- the name of the procedure, must not benull
or emptyprocedure
- the procedure, must not benull
- Returns:
-
register
public HealthChecks register(String name, long timeout, io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.Status> procedure) - Parameters:
name
- the name of the procedure, must not benull
or emptytimeout
- the procedure timeout in millisecondsprocedure
- the procedure, must not benull
- Returns:
-
unregister
- Parameters:
name
- the name of the procedure- Returns:
- the current
HealthChecks
-
invoke
- Parameters:
resultHandler
- the result handler, must not benull
. The handler received the computed .- Returns:
-
invoke
Invokes the registered procedure with the given name and sub-procedures. It computes the overall outcome.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
name
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
invokeAndAwait
Blocking variant ofinvoke(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name
-- Returns:
- the JsonObject instance produced by the operation.
-
invokeAndForget
Variant ofinvoke(String)
that ignores the result of the operation.This method subscribes on the result of
invoke(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation frominvoke(String)
but you don't need to compose it with other operations.- Parameters:
name
-- Returns:
- the instance of HealthChecks to chain method calls.
-
checkStatus
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.CheckResult> checkStatus()Invokes the registered procedures.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
checkStatusAndAwait
public io.vertx.ext.healthchecks.CheckResult checkStatusAndAwait()Blocking variant ofcheckStatus()
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Returns:
- the CheckResult instance produced by the operation.
-
checkStatusAndForget
public void checkStatusAndForget()Variant ofcheckStatus()
that ignores the result of the operation.This method subscribes on the result of
checkStatus()
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcheckStatus()
but you don't need to compose it with other operations. -
checkStatus
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.CheckResult> checkStatus(String name) Invokes the registered procedure with the given name and sub-procedures.Unlike the bare Vert.x variant, this method returns a
Uni
. Don't forget to subscribe on it to trigger the operation.- Parameters:
name
-- Returns:
- the
uni
firing the result of the operation when completed, or a failure if the operation failed.
-
checkStatusAndAwait
Blocking variant ofcheckStatus(String)
.This method waits for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in a RuntimeException).
- Parameters:
name
-- Returns:
- the CheckResult instance produced by the operation.
-
checkStatusAndForget
Variant ofcheckStatus(String)
that ignores the result of the operation.This method subscribes on the result of
checkStatus(String)
, but discards the outcome (item or failure). This method is useful to trigger the asynchronous operation fromcheckStatus(String)
but you don't need to compose it with other operations.- Parameters:
name
-
-
newInstance
-