public class ConnectionHolder extends Object
Constructor and Description |
---|
ConnectionHolder(io.vertx.mutiny.amqp.AmqpClient client,
AmqpConnectorCommonConfiguration configuration,
io.vertx.mutiny.core.Vertx vertx) |
Modifier and Type | Method and Description |
---|---|
io.vertx.mutiny.core.Context |
getContext() |
io.smallrye.mutiny.Uni<io.vertx.mutiny.amqp.AmqpConnection> |
getOrEstablishConnection() |
io.vertx.mutiny.core.Vertx |
getVertx() |
void |
onFailure(Consumer<Throwable> callback) |
static CompletionStage<Void> |
runOnContext(io.vertx.mutiny.core.Context context,
Runnable runnable) |
static CompletionStage<Void> |
runOnContextAndReportFailure(io.vertx.mutiny.core.Context context,
Throwable reason,
Runnable runnable) |
public ConnectionHolder(io.vertx.mutiny.amqp.AmqpClient client, AmqpConnectorCommonConfiguration configuration, io.vertx.mutiny.core.Vertx vertx)
public io.vertx.mutiny.core.Context getContext()
public io.vertx.mutiny.core.Vertx getVertx()
public io.smallrye.mutiny.Uni<io.vertx.mutiny.amqp.AmqpConnection> getOrEstablishConnection()
public static CompletionStage<Void> runOnContext(io.vertx.mutiny.core.Context context, Runnable runnable)
public static CompletionStage<Void> runOnContextAndReportFailure(io.vertx.mutiny.core.Context context, Throwable reason, Runnable runnable)
Copyright © 2018–2021 SmallRye. All rights reserved.