Class ConnectionHolder
- java.lang.Object
-
- io.smallrye.reactive.messaging.rabbitmq.ConnectionHolder
-
public class ConnectionHolder extends Object
-
-
Constructor Summary
Constructors Constructor Description ConnectionHolder(io.vertx.mutiny.rabbitmq.RabbitMQClient client, RabbitMQConnectorCommonConfiguration configuration, io.vertx.mutiny.core.Vertx vertx)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description io.smallrye.mutiny.Uni<Void>
getAck(long deliveryTag)
io.vertx.mutiny.core.Context
getContext()
Function<Throwable,CompletionStage<Void>>
getNack(long deliveryTag, boolean requeue)
io.smallrye.mutiny.Uni<io.vertx.mutiny.rabbitmq.RabbitMQClient>
getOrEstablishConnection()
io.vertx.mutiny.core.Vertx
getVertx()
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)
-
-
-
Constructor Detail
-
ConnectionHolder
public ConnectionHolder(io.vertx.mutiny.rabbitmq.RabbitMQClient client, RabbitMQConnectorCommonConfiguration configuration, io.vertx.mutiny.core.Vertx vertx)
-
-
Method Detail
-
runOnContext
public static CompletionStage<Void> runOnContext(io.vertx.mutiny.core.Context context, Runnable runnable)
-
runOnContextAndReportFailure
public static CompletionStage<Void> runOnContextAndReportFailure(io.vertx.mutiny.core.Context context, Throwable reason, Runnable runnable)
-
getContext
public io.vertx.mutiny.core.Context getContext()
-
getAck
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> getAck(long deliveryTag)
-
getNack
public Function<Throwable,CompletionStage<Void>> getNack(long deliveryTag, boolean requeue)
-
getVertx
public io.vertx.mutiny.core.Vertx getVertx()
-
getOrEstablishConnection
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.mutiny.rabbitmq.RabbitMQClient> getOrEstablishConnection()
-
-