Class ConnectionHolder
java.lang.Object
io.smallrye.reactive.messaging.rabbitmq.ConnectionHolder
-
Constructor Summary
ConstructorDescriptionConnectionHolder
(io.vertx.mutiny.rabbitmq.RabbitMQClient client, RabbitMQConnectorCommonConfiguration configuration, io.vertx.mutiny.core.Vertx vertx, io.vertx.mutiny.core.Context root) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>
getAck
(long deliveryTag) io.vertx.mutiny.core.Context
getNack
(long deliveryTag, boolean requeue) io.smallrye.mutiny.Uni<io.vertx.mutiny.rabbitmq.RabbitMQClient>
io.vertx.mutiny.core.Vertx
getVertx()
static CompletionStage<Void>
runOnContext
(io.vertx.mutiny.core.Context context, IncomingRabbitMQMessage<?> msg, Consumer<IncomingRabbitMQMessage<?>> handle) static CompletionStage<Void>
runOnContextAndReportFailure
(io.vertx.mutiny.core.Context context, Throwable reason, IncomingRabbitMQMessage<?> msg, Consumer<IncomingRabbitMQMessage<?>> handle)
-
Constructor Details
-
ConnectionHolder
public ConnectionHolder(io.vertx.mutiny.rabbitmq.RabbitMQClient client, RabbitMQConnectorCommonConfiguration configuration, io.vertx.mutiny.core.Vertx vertx, io.vertx.mutiny.core.Context root)
-
-
Method Details
-
runOnContext
public static CompletionStage<Void> runOnContext(io.vertx.mutiny.core.Context context, IncomingRabbitMQMessage<?> msg, Consumer<IncomingRabbitMQMessage<?>> handle) -
runOnContextAndReportFailure
public static CompletionStage<Void> runOnContextAndReportFailure(io.vertx.mutiny.core.Context context, Throwable reason, IncomingRabbitMQMessage<?> msg, Consumer<IncomingRabbitMQMessage<?>> handle) -
getContext
public io.vertx.mutiny.core.Context getContext() -
getAck
-
getNack
-
getVertx
public io.vertx.mutiny.core.Vertx getVertx() -
getOrEstablishConnection
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.mutiny.rabbitmq.RabbitMQClient> getOrEstablishConnection()
-