Class HealthChecks
- java.lang.Object
-
- io.vertx.mutiny.ext.healthchecks.HealthChecks
-
public class HealthChecks extends Object
NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<HealthChecks>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description HealthChecks(io.vertx.ext.healthchecks.HealthChecks delegate)
HealthChecks(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.CheckResult>
checkStatus()
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
checkStatusAndAwait()
Blocking variant ofcheckStatus()
.io.vertx.ext.healthchecks.CheckResult
checkStatusAndAwait(String name)
Blocking variant ofcheckStatus(String)
.void
checkStatusAndForget()
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
create(Vertx vertx)
boolean
equals(Object o)
io.vertx.ext.healthchecks.HealthChecks
getDelegate()
int
hashCode()
io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject>
invoke(String name)
Invokes the registered procedure with the given name and sub-procedures.HealthChecks
invoke(Consumer<io.vertx.core.json.JsonObject> resultHandler)
io.vertx.core.json.JsonObject
invokeAndAwait(String name)
Blocking variant ofinvoke(String)
.HealthChecks
invokeAndForget(String name)
Variant ofinvoke(String)
that ignores the result of the operation.static HealthChecks
newInstance(io.vertx.ext.healthchecks.HealthChecks arg)
HealthChecks
register(String name, long timeout, io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.Status> procedure)
HealthChecks
register(String name, io.smallrye.mutiny.Uni<io.vertx.ext.healthchecks.Status> procedure)
String
toString()
HealthChecks
unregister(String name)
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<HealthChecks> __TYPE_ARG
-
-
Constructor Detail
-
HealthChecks
public HealthChecks(io.vertx.ext.healthchecks.HealthChecks delegate)
-
HealthChecks
public HealthChecks(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.healthchecks.HealthChecks getDelegate()
-
create
public static HealthChecks create(Vertx vertx)
- 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
public HealthChecks unregister(String name)
- Parameters:
name
- the name of the procedure- Returns:
- the current
HealthChecks
-
invoke
public HealthChecks invoke(Consumer<io.vertx.core.json.JsonObject> resultHandler)
- Parameters:
resultHandler
- the result handler, must not benull
. The handler received the computed .- Returns:
-
invoke
public io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject> invoke(String name)
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
public io.vertx.core.json.JsonObject invokeAndAwait(String name)
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
public HealthChecks invokeAndForget(String name)
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
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
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
public io.vertx.ext.healthchecks.CheckResult checkStatusAndAwait(String name)
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
public void checkStatusAndForget(String name)
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
public static HealthChecks newInstance(io.vertx.ext.healthchecks.HealthChecks arg)
-
-