Class RabbitMQClient
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Nick Scavelli
- See Also:
-
RabbitMQClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRabbitMQClient(io.vertx.rabbitmq.RabbitMQClient delegate) Create a new instance ofRabbitMQClientdelegating to the given (non-null) instance ofRabbitMQClient.RabbitMQClient(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<ReadStream<io.vertx.rabbitmq.RabbitMQConfirmation>>addConfirmListener(int maxQueueSize) Add a Confirm Listener to the channel.ReadStream<io.vertx.rabbitmq.RabbitMQConfirmation>addConfirmListenerAndAwait(int maxQueueSize) Add a Confirm Listener to the channel.addConfirmListenerAndForget(int maxQueueSize) Add a Confirm Listener to the channel.io.smallrye.mutiny.Uni<Void>basicAck(long deliveryTag, boolean multiple) Acknowledge one or several received messages.voidbasicAckAndAwait(long deliveryTag, boolean multiple) Acknowledge one or several received messages.basicAckAndForget(long deliveryTag, boolean multiple) Acknowledge one or several received messages.io.smallrye.mutiny.Uni<RabbitMQConsumer>basicConsumer(String queue) Unlike the bare Vert.x variant, this method returns aUni.io.smallrye.mutiny.Uni<RabbitMQConsumer>basicConsumer(String queue, io.vertx.rabbitmq.QueueOptions options) Create a consumer with the givenoptions.basicConsumerAndAwait(String queue) Unlike the bare Vert.x variant, this method returns aRabbitMQConsumer.basicConsumerAndAwait(String queue, io.vertx.rabbitmq.QueueOptions options) Create a consumer with the givenoptions.basicConsumerAndForget(String queue) Unlike the bare Vert.x variant, this method ignores theRabbitMQConsumerresult or any failure.basicConsumerAndForget(String queue, io.vertx.rabbitmq.QueueOptions options) Create a consumer with the givenoptions.io.smallrye.mutiny.Uni<RabbitMQMessage>Retrieve a message from a queue using AMQP.Basic.GetbasicGetAndAwait(String queue, boolean autoAck) Retrieve a message from a queue using AMQP.Basic.GetbasicGetAndForget(String queue, boolean autoAck) Retrieve a message from a queue using AMQP.Basic.Getio.smallrye.mutiny.Uni<Void>basicNack(long deliveryTag, boolean multiple, boolean requeue) Reject one or several received messages.voidbasicNackAndAwait(long deliveryTag, boolean multiple, boolean requeue) Reject one or several received messages.basicNackAndForget(long deliveryTag, boolean multiple, boolean requeue) Reject one or several received messages.io.smallrye.mutiny.Uni<Void>basicPublish(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body) Publish a message.io.smallrye.mutiny.Uni<Void>basicPublish(String exchange, String routingKey, io.vertx.core.buffer.Buffer body) Publish a message.voidbasicPublishAndAwait(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body) Publish a message.voidbasicPublishAndAwait(String exchange, String routingKey, io.vertx.core.buffer.Buffer body) Publish a message.basicPublishAndForget(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body) Publish a message.basicPublishAndForget(String exchange, String routingKey, io.vertx.core.buffer.Buffer body) Publish a message.io.smallrye.mutiny.Uni<Void>basicPublishWithDeliveryTag(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body, Consumer<Long> deliveryTagHandler) Publish a message.voidbasicPublishWithDeliveryTagAndAwait(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body, Consumer<Long> deliveryTagHandler) Publish a message.basicPublishWithDeliveryTagAndForget(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body, Consumer<Long> deliveryTagHandler) Publish a message.io.smallrye.mutiny.Uni<Void>basicQos(int prefetchCount) Request a specific prefetchCount "quality of service" settings for this channel.io.smallrye.mutiny.Uni<Void>basicQos(int prefetchCount, boolean global) Request a specific prefetchCount "quality of service" settings for this channel.io.smallrye.mutiny.Uni<Void>basicQos(int prefetchSize, int prefetchCount, boolean global) Request specific "quality of service" settings.voidbasicQosAndAwait(int prefetchCount) Request a specific prefetchCount "quality of service" settings for this channel.voidbasicQosAndAwait(int prefetchCount, boolean global) Request a specific prefetchCount "quality of service" settings for this channel.voidbasicQosAndAwait(int prefetchSize, int prefetchCount, boolean global) Request specific "quality of service" settings.basicQosAndForget(int prefetchCount) Request a specific prefetchCount "quality of service" settings for this channel.basicQosAndForget(int prefetchCount, boolean global) Request a specific prefetchCount "quality of service" settings for this channel.basicQosAndForget(int prefetchSize, int prefetchCount, boolean global) Request specific "quality of service" settings.io.smallrye.mutiny.Uni<Void>Enables publisher acknowledgements on this channel.voidEnables publisher acknowledgements on this channel.Enables publisher acknowledgements on this channel.static RabbitMQClientCreate and return a client configured with the default options.static RabbitMQClientCreate and return a client.booleanio.smallrye.mutiny.Uni<Void>exchangeBind(String destination, String source, String routingKey) Bind an exchange to an exchange.io.smallrye.mutiny.Uni<Void>Bind an exchange to an exchange.voidexchangeBindAndAwait(String destination, String source, String routingKey) Bind an exchange to an exchange.voidexchangeBindAndAwait(String destination, String source, String routingKey, Map<String, Object> arguments) Bind an exchange to an exchange.exchangeBindAndForget(String destination, String source, String routingKey) Bind an exchange to an exchange.exchangeBindAndForget(String destination, String source, String routingKey, Map<String, Object> arguments) Bind an exchange to an exchange.io.smallrye.mutiny.Uni<Void>exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete) Declare an exchange.io.smallrye.mutiny.Uni<Void>exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare an exchange with additional parameters such as dead lettering, an alternate exchange or TTL.voidexchangeDeclareAndAwait(String exchange, String type, boolean durable, boolean autoDelete) Declare an exchange.voidexchangeDeclareAndAwait(String exchange, String type, boolean durable, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare an exchange with additional parameters such as dead lettering, an alternate exchange or TTL.exchangeDeclareAndForget(String exchange, String type, boolean durable, boolean autoDelete) Declare an exchange.exchangeDeclareAndForget(String exchange, String type, boolean durable, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare an exchange with additional parameters such as dead lettering, an alternate exchange or TTL.io.smallrye.mutiny.Uni<Void>exchangeDelete(String exchange) Delete an exchange, without regard for whether it is in use or not.voidexchangeDeleteAndAwait(String exchange) Delete an exchange, without regard for whether it is in use or not.exchangeDeleteAndForget(String exchange) Delete an exchange, without regard for whether it is in use or not.io.smallrye.mutiny.Uni<Void>exchangeUnbind(String destination, String source, String routingKey) Unbind an exchange from an exchange.io.smallrye.mutiny.Uni<Void>Unbind an exchange from an exchange.voidexchangeUnbindAndAwait(String destination, String source, String routingKey) Unbind an exchange from an exchange.voidexchangeUnbindAndAwait(String destination, String source, String routingKey, Map<String, Object> arguments) Unbind an exchange from an exchange.exchangeUnbindAndForget(String destination, String source, String routingKey) Unbind an exchange from an exchange.exchangeUnbindAndForget(String destination, String source, String routingKey, Map<String, Object> arguments) Unbind an exchange from an exchange.io.vertx.rabbitmq.RabbitMQClientGet the delegate instance.inthashCode()booleanCheck if a connection is openbooleanCheck if a channel is openio.smallrye.mutiny.Uni<Long>messageCount(String queue) Returns the number of messages in a queue ready to be delivered.messageCountAndAwait(String queue) Returns the number of messages in a queue ready to be delivered.messageCountAndForget(String queue) Returns the number of messages in a queue ready to be delivered.static RabbitMQClientnewInstance(io.vertx.rabbitmq.RabbitMQClient delegate) Creates a new instance of theRabbitMQClient.io.smallrye.mutiny.Uni<Void>Bind a queue to an exchangeio.smallrye.mutiny.Uni<Void>Bind a queue to an exchangevoidqueueBindAndAwait(String queue, String exchange, String routingKey) Bind a queue to an exchangevoidBind a queue to an exchangequeueBindAndForget(String queue, String exchange, String routingKey) Bind a queue to an exchangeBind a queue to an exchangeio.smallrye.mutiny.Uni<com.rabbitmq.client.AMQP.Queue.DeclareOk>queueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete) Declare a queueio.smallrye.mutiny.Uni<com.rabbitmq.client.AMQP.Queue.DeclareOk>queueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare a queue with config optionscom.rabbitmq.client.AMQP.Queue.DeclareOkqueueDeclareAndAwait(String queue, boolean durable, boolean exclusive, boolean autoDelete) Declare a queuecom.rabbitmq.client.AMQP.Queue.DeclareOkqueueDeclareAndAwait(String queue, boolean durable, boolean exclusive, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare a queue with config optionsqueueDeclareAndForget(String queue, boolean durable, boolean exclusive, boolean autoDelete) Declare a queuequeueDeclareAndForget(String queue, boolean durable, boolean exclusive, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare a queue with config optionsio.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject>Actively declare a server-named exclusive, autodelete, non-durable queue.io.vertx.core.json.JsonObjectActively declare a server-named exclusive, autodelete, non-durable queue.Actively declare a server-named exclusive, autodelete, non-durable queue.io.smallrye.mutiny.Uni<com.rabbitmq.client.AMQP.Queue.DeleteOk>queueDelete(String queue) Delete a queue, without regard for whether it is in use or has messages on itcom.rabbitmq.client.AMQP.Queue.DeleteOkqueueDeleteAndAwait(String queue) Delete a queue, without regard for whether it is in use or has messages on itqueueDeleteAndForget(String queue) Delete a queue, without regard for whether it is in use or has messages on itio.smallrye.mutiny.Uni<com.rabbitmq.client.AMQP.Queue.DeleteOk>queueDeleteIf(String queue, boolean ifUnused, boolean ifEmpty) Delete a queuecom.rabbitmq.client.AMQP.Queue.DeleteOkqueueDeleteIfAndAwait(String queue, boolean ifUnused, boolean ifEmpty) Delete a queuequeueDeleteIfAndForget(String queue, boolean ifUnused, boolean ifEmpty) Delete a queueio.smallrye.mutiny.Uni<Void>queueUnbind(String queue, String exchange, String routingKey) Unbind a queue from an exchangeio.smallrye.mutiny.Uni<Void>Unbind a queue from an exchangevoidqueueUnbindAndAwait(String queue, String exchange, String routingKey) Unbind a queue from an exchangevoidUnbind a queue from an exchangequeueUnbindAndForget(String queue, String exchange, String routingKey) Unbind a queue from an exchangequeueUnbindAndForget(String queue, String exchange, String routingKey, Map<String, Object> arguments) Unbind a queue from an exchangeio.smallrye.mutiny.Uni<Void>restartConnect(int attempts) restart the rabbitMQ connect.voidrestartConnectAndAwait(int attempts) restart the rabbitMQ connect.restartConnectAndForget(int attempts) restart the rabbitMQ connect.io.smallrye.mutiny.Uni<Void>start()Start the rabbitMQ client.voidStart the rabbitMQ client.Start the rabbitMQ client.io.smallrye.mutiny.Uni<Void>stop()Stop the rabbitMQ client.voidStop the rabbitMQ client.Stop the rabbitMQ client.toString()io.smallrye.mutiny.Uni<Void>Wait until all messages published since the last call have been either ack'd or nack'd by the broker.io.smallrye.mutiny.Uni<Void>waitForConfirms(long timeout) Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses.voidWait until all messages published since the last call have been either ack'd or nack'd by the broker.voidwaitForConfirmsAndAwait(long timeout) Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses.Wait until all messages published since the last call have been either ack'd or nack'd by the broker.waitForConfirmsAndForget(long timeout) Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses.
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
RabbitMQClient
public RabbitMQClient(io.vertx.rabbitmq.RabbitMQClient delegate) Create a new instance ofRabbitMQClientdelegating to the given (non-null) instance ofRabbitMQClient. -
RabbitMQClient
-
-
Method Details
-
getDelegate
public io.vertx.rabbitmq.RabbitMQClient getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
basicAck
Acknowledge one or several received messages. Supply the deliveryTag from the AMQP.Basic.GetOk or AMQP.Basic.Deliver method containing the received message being acknowledged.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.basicAck(long, boolean)RabbitMQClient.basicAck(long, boolean)
-
basicAckAndAwait
public void basicAckAndAwait(long deliveryTag, boolean multiple) Acknowledge one or several received messages. Supply the deliveryTag from the AMQP.Basic.GetOk or AMQP.Basic.Deliver method containing the received message being acknowledged.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.basicAck(long, boolean)RabbitMQClient.basicAck(long, boolean)
-
basicAckAndForget
Acknowledge one or several received messages. Supply the deliveryTag from the AMQP.Basic.GetOk or AMQP.Basic.Deliver method containing the received message being acknowledged.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.basicAck(long, boolean)RabbitMQClient.basicAck(long, boolean)
-
basicNack
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> basicNack(long deliveryTag, boolean multiple, boolean requeue) Reject one or several received messages.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.basicNack(long, boolean, boolean)RabbitMQClient.basicNack(long, boolean, boolean)
-
basicNackAndAwait
public void basicNackAndAwait(long deliveryTag, boolean multiple, boolean requeue) Reject one or several received messages.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.basicNack(long, boolean, boolean)RabbitMQClient.basicNack(long, boolean, boolean)
-
basicNackAndForget
Reject one or several received messages.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.basicNack(long, boolean, boolean)RabbitMQClient.basicNack(long, boolean, boolean)
-
basicGet
@CheckReturnValue public io.smallrye.mutiny.Uni<RabbitMQMessage> basicGet(String queue, boolean autoAck) Retrieve a message from a queue using AMQP.Basic.GetUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.basicGet(String, boolean)RabbitMQClient.basicGet(String, boolean)
-
basicGetAndAwait
Retrieve a message from a queue using AMQP.Basic.GetUnlike the bare Vert.x variant, this method returns a
RabbitMQMessage. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
Channel.basicGet(String, boolean)RabbitMQClient.basicGet(String, boolean)
-
basicGetAndForget
Retrieve a message from a queue using AMQP.Basic.GetUnlike the bare Vert.x variant, this method ignores the
RabbitMQMessageresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.basicGet(String, boolean)RabbitMQClient.basicGet(String, boolean)
-
basicConsumer
Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
com.rabbitmq.client.Channel#basicConsume(String, Consumer)basicConsumer(String)RabbitMQClient.basicConsumer(String)
-
basicConsumerAndAwait
Unlike the bare Vert.x variant, this method returns a
RabbitMQConsumer. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
com.rabbitmq.client.Channel#basicConsume(String, Consumer)basicConsumer(String)RabbitMQClient.basicConsumer(String)
-
basicConsumerAndForget
Unlike the bare Vert.x variant, this method ignores the
RabbitMQConsumerresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
com.rabbitmq.client.Channel#basicConsume(String, Consumer)basicConsumer(String)RabbitMQClient.basicConsumer(String)
-
basicConsumer
@CheckReturnValue public io.smallrye.mutiny.Uni<RabbitMQConsumer> basicConsumer(String queue, io.vertx.rabbitmq.QueueOptions options) Create a consumer with the givenoptions.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
queue- the name of a queueoptions- options for queue- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
com.rabbitmq.client.Channel#basicConsume(String, boolean, String, Consumer)RabbitMQClient.basicConsumer(String, QueueOptions)
-
basicConsumerAndAwait
Create a consumer with the givenoptions.Unlike the bare Vert.x variant, this method returns a
RabbitMQConsumer. This method awaits indefinitely 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 aRuntimeException).- Parameters:
queue- the name of a queueoptions- options for queue- Returns:
- The operation result
- See Also:
-
com.rabbitmq.client.Channel#basicConsume(String, boolean, String, Consumer)RabbitMQClient.basicConsumer(String, QueueOptions)
-
basicConsumerAndForget
Create a consumer with the givenoptions.Unlike the bare Vert.x variant, this method ignores the
RabbitMQConsumerresult or any failure.- Parameters:
queue- the name of a queueoptions- options for queue- Returns:
- The current instance to chain operations if needed.
- See Also:
-
com.rabbitmq.client.Channel#basicConsume(String, boolean, String, Consumer)RabbitMQClient.basicConsumer(String, QueueOptions)
-
basicPublish
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> basicPublish(String exchange, String routingKey, io.vertx.core.buffer.Buffer body) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublish(String, String, Buffer)
-
basicPublishAndAwait
public void basicPublishAndAwait(String exchange, String routingKey, io.vertx.core.buffer.Buffer body) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublish(String, String, Buffer)
-
basicPublishAndForget
public RabbitMQClient basicPublishAndForget(String exchange, String routingKey, io.vertx.core.buffer.Buffer body) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublish(String, String, Buffer)
-
basicPublish
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> basicPublish(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublish(String, String, BasicProperties, Buffer)
-
basicPublishAndAwait
public void basicPublishAndAwait(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublish(String, String, BasicProperties, Buffer)
-
basicPublishAndForget
public RabbitMQClient basicPublishAndForget(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublish(String, String, BasicProperties, Buffer)
-
basicPublishWithDeliveryTag
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> basicPublishWithDeliveryTag(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body, Consumer<Long> deliveryTagHandler) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect. The deliveryTagHandler will be called before the message is sent, which is necessary because the confirmation may arrive asynchronously before the resultHandler is called.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
deliveryTagHandler- callback to capture the deliveryTag for this message. Note that this will be called synchronously in the context of the client before the result is known. Can benull.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublishWithDeliveryTag(String, String, BasicProperties, Buffer, Handler)
-
basicPublishWithDeliveryTagAndAwait
public void basicPublishWithDeliveryTagAndAwait(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body, Consumer<Long> deliveryTagHandler) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect. The deliveryTagHandler will be called before the message is sent, which is necessary because the confirmation may arrive asynchronously before the resultHandler is called.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
deliveryTagHandler- callback to capture the deliveryTag for this message. Note that this will be called synchronously in the context of the client before the result is known.- See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublishWithDeliveryTag(String, String, BasicProperties, Buffer, Handler)
-
basicPublishWithDeliveryTagAndForget
public RabbitMQClient basicPublishWithDeliveryTagAndForget(String exchange, String routingKey, com.rabbitmq.client.BasicProperties properties, io.vertx.core.buffer.Buffer body, Consumer<Long> deliveryTagHandler) Publish a message. Publishing to a non-existent exchange will result in a channel-level protocol exception, which closes the channel. Invocations of Channel#basicPublish will eventually block if a resource-driven alarm is in effect. The deliveryTagHandler will be called before the message is sent, which is necessary because the confirmation may arrive asynchronously before the resultHandler is called.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
deliveryTagHandler- callback to capture the deliveryTag for this message. Note that this will be called synchronously in the context of the client before the result is known.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.basicPublish(String, String, AMQP.BasicProperties, byte[])RabbitMQClient.basicPublishWithDeliveryTag(String, String, BasicProperties, Buffer, Handler)
-
addConfirmListener
@CheckReturnValue public io.smallrye.mutiny.Uni<ReadStream<io.vertx.rabbitmq.RabbitMQConfirmation>> addConfirmListener(int maxQueueSize) Add a Confirm Listener to the channel. Note that this will automatically call confirmSelect, it is not necessary to call that too.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
maxQueueSize- maximum size of the queue of confirmations- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.addConfirmListener(ConfirmListener)RabbitMQClient.addConfirmListener(int)
-
addConfirmListenerAndAwait
public ReadStream<io.vertx.rabbitmq.RabbitMQConfirmation> addConfirmListenerAndAwait(int maxQueueSize) Add a Confirm Listener to the channel. Note that this will automatically call confirmSelect, it is not necessary to call that too.Unlike the bare Vert.x variant, this method returns a
ReadStream<io.vertx.rabbitmq.RabbitMQConfirmation>. This method awaits indefinitely 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 aRuntimeException).- Parameters:
maxQueueSize- maximum size of the queue of confirmations- Returns:
- The operation result
- See Also:
-
Channel.addConfirmListener(ConfirmListener)RabbitMQClient.addConfirmListener(int)
-
addConfirmListenerAndForget
Add a Confirm Listener to the channel. Note that this will automatically call confirmSelect, it is not necessary to call that too.Unlike the bare Vert.x variant, this method ignores the
ReadStream<io.vertx.rabbitmq.RabbitMQConfirmation>result or any failure.- Parameters:
maxQueueSize- maximum size of the queue of confirmations- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.addConfirmListener(ConfirmListener)RabbitMQClient.addConfirmListener(int)
-
confirmSelect
Enables publisher acknowledgements on this channel. Can be called once during client initialisation. Calls to basicPublish() will have to be confirmed.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel#confirmSelect()RabbitMQClient.confirmSelect()
-
confirmSelectAndAwait
public void confirmSelectAndAwait()Enables publisher acknowledgements on this channel. Can be called once during client initialisation. Calls to basicPublish() will have to be confirmed.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel#confirmSelect()RabbitMQClient.confirmSelect()
-
confirmSelectAndForget
Enables publisher acknowledgements on this channel. Can be called once during client initialisation. Calls to basicPublish() will have to be confirmed.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel#confirmSelect()RabbitMQClient.confirmSelect()
-
waitForConfirms
Wait until all messages published since the last call have been either ack'd or nack'd by the broker. This will incur slight performance loss at the expense of higher write consistency. If desired, multiple calls to basicPublish() can be batched before confirming.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - Throws:
Throws- an IOException if the message was not written to the queue.- See Also:
-
Channel#waitForConfirms()RabbitMQClient.waitForConfirms()
-
waitForConfirmsAndAwait
public void waitForConfirmsAndAwait()Wait until all messages published since the last call have been either ack'd or nack'd by the broker. This will incur slight performance loss at the expense of higher write consistency. If desired, multiple calls to basicPublish() can be batched before confirming.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Throws:
Throws- an IOException if the message was not written to the queue.- See Also:
-
Channel#waitForConfirms()RabbitMQClient.waitForConfirms()
-
waitForConfirmsAndForget
Wait until all messages published since the last call have been either ack'd or nack'd by the broker. This will incur slight performance loss at the expense of higher write consistency. If desired, multiple calls to basicPublish() can be batched before confirming.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- Throws:
Throws- an IOException if the message was not written to the queue.- See Also:
-
Channel#waitForConfirms()RabbitMQClient.waitForConfirms()
-
waitForConfirms
Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses. If the timeout expires a TimeoutException is thrown.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
timeout-- Returns:
- A
Unirepresenting the asynchronous result of this operation. - Throws:
Throws- an IOException if the message was not written to the queue.- See Also:
-
waitForConfirms()RabbitMQClient.waitForConfirms(long)
-
waitForConfirmsAndAwait
public void waitForConfirmsAndAwait(long timeout) Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses. If the timeout expires a TimeoutException is thrown.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
timeout-- Throws:
Throws- an IOException if the message was not written to the queue.- See Also:
-
waitForConfirms()RabbitMQClient.waitForConfirms(long)
-
waitForConfirmsAndForget
Wait until all messages published since the last call have been either ack'd or nack'd by the broker; or until timeout elapses. If the timeout expires a TimeoutException is thrown.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
timeout-- Returns:
- The current instance to chain operations if needed.
- Throws:
Throws- an IOException if the message was not written to the queue.- See Also:
-
waitForConfirms()RabbitMQClient.waitForConfirms(long)
-
basicQos
Request a specific prefetchCount "quality of service" settings for this channel.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
prefetchCount- maximum number of messages that the server will deliver, 0 if unlimited- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
basicQos(int, int, boolean)RabbitMQClient.basicQos(int)
-
basicQosAndAwait
public void basicQosAndAwait(int prefetchCount) Request a specific prefetchCount "quality of service" settings for this channel.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
prefetchCount- maximum number of messages that the server will deliver, 0 if unlimited- See Also:
-
basicQos(int, int, boolean)RabbitMQClient.basicQos(int)
-
basicQosAndForget
Request a specific prefetchCount "quality of service" settings for this channel.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
prefetchCount- maximum number of messages that the server will deliver, 0 if unlimited- Returns:
- The current instance to chain operations if needed.
- See Also:
-
basicQos(int, int, boolean)RabbitMQClient.basicQos(int)
-
basicQos
Request a specific prefetchCount "quality of service" settings for this channel.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
prefetchCount- maximum number of messages that the server will deliver, 0 if unlimitedglobal- true if the settings should be applied to the entire channel rather than each consumer- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
basicQos(int, int, boolean)RabbitMQClient.basicQos(int, boolean)
-
basicQosAndAwait
public void basicQosAndAwait(int prefetchCount, boolean global) Request a specific prefetchCount "quality of service" settings for this channel.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
prefetchCount- maximum number of messages that the server will deliver, 0 if unlimitedglobal- true if the settings should be applied to the entire channel rather than each consumer- See Also:
-
basicQos(int, int, boolean)RabbitMQClient.basicQos(int, boolean)
-
basicQosAndForget
Request a specific prefetchCount "quality of service" settings for this channel.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
prefetchCount- maximum number of messages that the server will deliver, 0 if unlimitedglobal- true if the settings should be applied to the entire channel rather than each consumer- Returns:
- The current instance to chain operations if needed.
- See Also:
-
basicQos(int, int, boolean)RabbitMQClient.basicQos(int, boolean)
-
basicQos
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> basicQos(int prefetchSize, int prefetchCount, boolean global) Request specific "quality of service" settings. These settings impose limits on the amount of data the server will deliver to consumers before requiring acknowledgements. Thus they provide a means of consumer-initiated flow control.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
prefetchSize- maximum amount of content (measured in octets) that the server will deliver, 0 if unlimitedprefetchCount- maximum number of messages that the server will deliver, 0 if unlimitedglobal- true if the settings should be applied to the entire channel rather than each consumer- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
AMQP.Basic.QosRabbitMQClient.basicQos(int, int, boolean)
-
basicQosAndAwait
public void basicQosAndAwait(int prefetchSize, int prefetchCount, boolean global) Request specific "quality of service" settings. These settings impose limits on the amount of data the server will deliver to consumers before requiring acknowledgements. Thus they provide a means of consumer-initiated flow control.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
prefetchSize- maximum amount of content (measured in octets) that the server will deliver, 0 if unlimitedprefetchCount- maximum number of messages that the server will deliver, 0 if unlimitedglobal- true if the settings should be applied to the entire channel rather than each consumer- See Also:
-
AMQP.Basic.QosRabbitMQClient.basicQos(int, int, boolean)
-
basicQosAndForget
Request specific "quality of service" settings. These settings impose limits on the amount of data the server will deliver to consumers before requiring acknowledgements. Thus they provide a means of consumer-initiated flow control.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
prefetchSize- maximum amount of content (measured in octets) that the server will deliver, 0 if unlimitedprefetchCount- maximum number of messages that the server will deliver, 0 if unlimitedglobal- true if the settings should be applied to the entire channel rather than each consumer- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AMQP.Basic.QosRabbitMQClient.basicQos(int, int, boolean)
-
exchangeDeclare
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete) Declare an exchange.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.exchangeDeclare(String, String, boolean, boolean, Map)RabbitMQClient.exchangeDeclare(String, String, boolean, boolean)
-
exchangeDeclareAndAwait
public void exchangeDeclareAndAwait(String exchange, String type, boolean durable, boolean autoDelete) Declare an exchange.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.exchangeDeclare(String, String, boolean, boolean, Map)RabbitMQClient.exchangeDeclare(String, String, boolean, boolean)
-
exchangeDeclareAndForget
public RabbitMQClient exchangeDeclareAndForget(String exchange, String type, boolean durable, boolean autoDelete) Declare an exchange.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.exchangeDeclare(String, String, boolean, boolean, Map)RabbitMQClient.exchangeDeclare(String, String, boolean, boolean)
-
exchangeDeclare
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> exchangeDeclare(String exchange, String type, boolean durable, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare an exchange with additional parameters such as dead lettering, an alternate exchange or TTL.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.exchangeDeclare(String, String, boolean, boolean, Map)RabbitMQClient.exchangeDeclare(String, String, boolean, boolean, JsonObject)
-
exchangeDeclareAndAwait
public void exchangeDeclareAndAwait(String exchange, String type, boolean durable, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare an exchange with additional parameters such as dead lettering, an alternate exchange or TTL.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.exchangeDeclare(String, String, boolean, boolean, Map)RabbitMQClient.exchangeDeclare(String, String, boolean, boolean, JsonObject)
-
exchangeDeclareAndForget
public RabbitMQClient exchangeDeclareAndForget(String exchange, String type, boolean durable, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare an exchange with additional parameters such as dead lettering, an alternate exchange or TTL.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.exchangeDeclare(String, String, boolean, boolean, Map)RabbitMQClient.exchangeDeclare(String, String, boolean, boolean, JsonObject)
-
exchangeDelete
Delete an exchange, without regard for whether it is in use or not.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.exchangeDelete(String)RabbitMQClient.exchangeDelete(String)
-
exchangeDeleteAndAwait
Delete an exchange, without regard for whether it is in use or not.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.exchangeDelete(String)RabbitMQClient.exchangeDelete(String)
-
exchangeDeleteAndForget
Delete an exchange, without regard for whether it is in use or not.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.exchangeDelete(String)RabbitMQClient.exchangeDelete(String)
-
exchangeBind
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> exchangeBind(String destination, String source, String routingKey) Bind an exchange to an exchange.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.exchangeBind(String, String, String)RabbitMQClient.exchangeBind(String, String, String)
-
exchangeBindAndAwait
Bind an exchange to an exchange.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.exchangeBind(String, String, String)RabbitMQClient.exchangeBind(String, String, String)
-
exchangeBindAndForget
Bind an exchange to an exchange.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.exchangeBind(String, String, String)RabbitMQClient.exchangeBind(String, String, String)
-
exchangeBind
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> exchangeBind(String destination, String source, String routingKey, Map<String, Object> arguments) Bind an exchange to an exchange.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.exchangeBind(String, String, String, Map<String, Object>)RabbitMQClient.exchangeBind(String, String, String, Map)
-
exchangeBindAndAwait
public void exchangeBindAndAwait(String destination, String source, String routingKey, Map<String, Object> arguments) Bind an exchange to an exchange.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.exchangeBind(String, String, String, Map<String, Object>)RabbitMQClient.exchangeBind(String, String, String, Map)
-
exchangeBindAndForget
public RabbitMQClient exchangeBindAndForget(String destination, String source, String routingKey, Map<String, Object> arguments) Bind an exchange to an exchange.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.exchangeBind(String, String, String, Map<String, Object>)RabbitMQClient.exchangeBind(String, String, String, Map)
-
exchangeUnbind
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> exchangeUnbind(String destination, String source, String routingKey) Unbind an exchange from an exchange.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.exchangeUnbind(String, String, String)RabbitMQClient.exchangeUnbind(String, String, String)
-
exchangeUnbindAndAwait
Unbind an exchange from an exchange.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.exchangeUnbind(String, String, String)RabbitMQClient.exchangeUnbind(String, String, String)
-
exchangeUnbindAndForget
Unbind an exchange from an exchange.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.exchangeUnbind(String, String, String)RabbitMQClient.exchangeUnbind(String, String, String)
-
exchangeUnbind
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> exchangeUnbind(String destination, String source, String routingKey, Map<String, Object> arguments) Unbind an exchange from an exchange.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.exchangeUnbind(String, String, String, Map<String, Object>)RabbitMQClient.exchangeUnbind(String, String, String, Map)
-
exchangeUnbindAndAwait
public void exchangeUnbindAndAwait(String destination, String source, String routingKey, Map<String, Object> arguments) Unbind an exchange from an exchange.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.exchangeUnbind(String, String, String, Map<String, Object>)RabbitMQClient.exchangeUnbind(String, String, String, Map)
-
exchangeUnbindAndForget
public RabbitMQClient exchangeUnbindAndForget(String destination, String source, String routingKey, Map<String, Object> arguments) Unbind an exchange from an exchange.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.exchangeUnbind(String, String, String, Map<String, Object>)RabbitMQClient.exchangeUnbind(String, String, String, Map)
-
queueDeclareAuto
@CheckReturnValue public io.smallrye.mutiny.Uni<io.vertx.core.json.JsonObject> queueDeclareAuto()Actively declare a server-named exclusive, autodelete, non-durable queue.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueDeclare()RabbitMQClient.queueDeclareAuto()
-
queueDeclareAutoAndAwait
public io.vertx.core.json.JsonObject queueDeclareAutoAndAwait()Actively declare a server-named exclusive, autodelete, non-durable queue.Unlike the bare Vert.x variant, this method returns a
JsonObject. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
Channel.queueDeclare()RabbitMQClient.queueDeclareAuto()
-
queueDeclareAutoAndForget
Actively declare a server-named exclusive, autodelete, non-durable queue.Unlike the bare Vert.x variant, this method ignores the
JsonObjectresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueDeclare()RabbitMQClient.queueDeclareAuto()
-
queueDeclare
@CheckReturnValue public io.smallrye.mutiny.Uni<com.rabbitmq.client.AMQP.Queue.DeclareOk> queueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete) Declare a queueUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueDeclare(String, boolean, boolean, boolean, java.util.Map)RabbitMQClient.queueDeclare(String, boolean, boolean, boolean)
-
queueDeclareAndAwait
public com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclareAndAwait(String queue, boolean durable, boolean exclusive, boolean autoDelete) Declare a queueUnlike the bare Vert.x variant, this method returns a
AMQP.Queue.DeclareOk. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
Channel.queueDeclare(String, boolean, boolean, boolean, java.util.Map)RabbitMQClient.queueDeclare(String, boolean, boolean, boolean)
-
queueDeclareAndForget
public RabbitMQClient queueDeclareAndForget(String queue, boolean durable, boolean exclusive, boolean autoDelete) Declare a queueUnlike the bare Vert.x variant, this method ignores the
AMQP.Queue.DeclareOkresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueDeclare(String, boolean, boolean, boolean, java.util.Map)RabbitMQClient.queueDeclare(String, boolean, boolean, boolean)
-
queueDeclare
@CheckReturnValue public io.smallrye.mutiny.Uni<com.rabbitmq.client.AMQP.Queue.DeclareOk> queueDeclare(String queue, boolean durable, boolean exclusive, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare a queue with config optionsUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueDeclare(String, boolean, boolean, boolean, java.util.Map)RabbitMQClient.queueDeclare(String, boolean, boolean, boolean, JsonObject)
-
queueDeclareAndAwait
public com.rabbitmq.client.AMQP.Queue.DeclareOk queueDeclareAndAwait(String queue, boolean durable, boolean exclusive, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare a queue with config optionsUnlike the bare Vert.x variant, this method returns a
AMQP.Queue.DeclareOk. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
Channel.queueDeclare(String, boolean, boolean, boolean, java.util.Map)RabbitMQClient.queueDeclare(String, boolean, boolean, boolean, JsonObject)
-
queueDeclareAndForget
public RabbitMQClient queueDeclareAndForget(String queue, boolean durable, boolean exclusive, boolean autoDelete, io.vertx.core.json.JsonObject config) Declare a queue with config optionsUnlike the bare Vert.x variant, this method ignores the
AMQP.Queue.DeclareOkresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueDeclare(String, boolean, boolean, boolean, java.util.Map)RabbitMQClient.queueDeclare(String, boolean, boolean, boolean, JsonObject)
-
queueDelete
@CheckReturnValue public io.smallrye.mutiny.Uni<com.rabbitmq.client.AMQP.Queue.DeleteOk> queueDelete(String queue) Delete a queue, without regard for whether it is in use or has messages on itUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueDelete(String)RabbitMQClient.queueDelete(String)
-
queueDeleteAndAwait
Delete a queue, without regard for whether it is in use or has messages on itUnlike the bare Vert.x variant, this method returns a
AMQP.Queue.DeleteOk. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
Channel.queueDelete(String)RabbitMQClient.queueDelete(String)
-
queueDeleteAndForget
Delete a queue, without regard for whether it is in use or has messages on itUnlike the bare Vert.x variant, this method ignores the
AMQP.Queue.DeleteOkresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueDelete(String)RabbitMQClient.queueDelete(String)
-
queueDeleteIf
@CheckReturnValue public io.smallrye.mutiny.Uni<com.rabbitmq.client.AMQP.Queue.DeleteOk> queueDeleteIf(String queue, boolean ifUnused, boolean ifEmpty) Delete a queueUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueDelete(String, boolean, boolean)RabbitMQClient.queueDeleteIf(String, boolean, boolean)
-
queueDeleteIfAndAwait
public com.rabbitmq.client.AMQP.Queue.DeleteOk queueDeleteIfAndAwait(String queue, boolean ifUnused, boolean ifEmpty) Delete a queueUnlike the bare Vert.x variant, this method returns a
AMQP.Queue.DeleteOk. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
Channel.queueDelete(String, boolean, boolean)RabbitMQClient.queueDeleteIf(String, boolean, boolean)
-
queueDeleteIfAndForget
Delete a queueUnlike the bare Vert.x variant, this method ignores the
AMQP.Queue.DeleteOkresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueDelete(String, boolean, boolean)RabbitMQClient.queueDeleteIf(String, boolean, boolean)
-
queueBind
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> queueBind(String queue, String exchange, String routingKey) Bind a queue to an exchangeUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueBind(String, String, String)RabbitMQClient.queueBind(String, String, String)
-
queueBindAndAwait
Bind a queue to an exchangeUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.queueBind(String, String, String)RabbitMQClient.queueBind(String, String, String)
-
queueBindAndForget
Bind a queue to an exchangeUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueBind(String, String, String)RabbitMQClient.queueBind(String, String, String)
-
queueBind
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> queueBind(String queue, String exchange, String routingKey, Map<String, Object> arguments) Bind a queue to an exchangeUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueBind(String, String, String, Map<String, Object>)RabbitMQClient.queueBind(String, String, String, Map)
-
queueBindAndAwait
public void queueBindAndAwait(String queue, String exchange, String routingKey, Map<String, Object> arguments) Bind a queue to an exchangeUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.queueBind(String, String, String, Map<String, Object>)RabbitMQClient.queueBind(String, String, String, Map)
-
queueBindAndForget
public RabbitMQClient queueBindAndForget(String queue, String exchange, String routingKey, Map<String, Object> arguments) Bind a queue to an exchangeUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueBind(String, String, String, Map<String, Object>)RabbitMQClient.queueBind(String, String, String, Map)
-
queueUnbind
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> queueUnbind(String queue, String exchange, String routingKey) Unbind a queue from an exchangeUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueUnbind(String, String, String)RabbitMQClient.queueUnbind(String, String, String)
-
queueUnbindAndAwait
Unbind a queue from an exchangeUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.queueUnbind(String, String, String)RabbitMQClient.queueUnbind(String, String, String)
-
queueUnbindAndForget
Unbind a queue from an exchangeUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueUnbind(String, String, String)RabbitMQClient.queueUnbind(String, String, String)
-
queueUnbind
@CheckReturnValue public io.smallrye.mutiny.Uni<Void> queueUnbind(String queue, String exchange, String routingKey, Map<String, Object> arguments) Unbind a queue from an exchangeUnlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.queueUnbind(String, String, String, Map<String, Object>)RabbitMQClient.queueUnbind(String, String, String, Map)
-
queueUnbindAndAwait
public void queueUnbindAndAwait(String queue, String exchange, String routingKey, Map<String, Object> arguments) Unbind a queue from an exchangeUnlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Channel.queueUnbind(String, String, String, Map<String, Object>)RabbitMQClient.queueUnbind(String, String, String, Map)
-
queueUnbindAndForget
public RabbitMQClient queueUnbindAndForget(String queue, String exchange, String routingKey, Map<String, Object> arguments) Unbind a queue from an exchangeUnlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.queueUnbind(String, String, String, Map<String, Object>)RabbitMQClient.queueUnbind(String, String, String, Map)
-
messageCount
Returns the number of messages in a queue ready to be delivered.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Channel.messageCount(String)RabbitMQClient.messageCount(String)
-
messageCountAndAwait
Returns the number of messages in a queue ready to be delivered.Unlike the bare Vert.x variant, this method returns a
Long. This method awaits indefinitely 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 aRuntimeException).- Returns:
- The operation result
- See Also:
-
Channel.messageCount(String)RabbitMQClient.messageCount(String)
-
messageCountAndForget
Returns the number of messages in a queue ready to be delivered.Unlike the bare Vert.x variant, this method ignores the
Longresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Channel.messageCount(String)RabbitMQClient.messageCount(String)
-
start
Start the rabbitMQ client. Create the connection and the channel.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Connection.createChannel()RabbitMQClient.start()
-
startAndAwait
public void startAndAwait()Start the rabbitMQ client. Create the connection and the channel.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Connection.createChannel()RabbitMQClient.start()
-
startAndForget
Start the rabbitMQ client. Create the connection and the channel.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Connection.createChannel()RabbitMQClient.start()
-
stop
Stop the rabbitMQ client. Close the connection and its channel.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
Connection.close()RabbitMQClient.stop()
-
stopAndAwait
public void stopAndAwait()Stop the rabbitMQ client. Close the connection and its channel.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- See Also:
-
Connection.close()RabbitMQClient.stop()
-
stopAndForget
Stop the rabbitMQ client. Close the connection and its channel.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
Connection.close()RabbitMQClient.stop()
-
restartConnect
restart the rabbitMQ connect.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Parameters:
attempts- number of attempts- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
RabbitMQClient.restartConnect(int)
-
restartConnectAndAwait
public void restartConnectAndAwait(int attempts) restart the rabbitMQ connect.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely 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 aRuntimeException).- Parameters:
attempts- number of attempts- See Also:
-
RabbitMQClient.restartConnect(int)
-
restartConnectAndForget
restart the rabbitMQ connect.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Parameters:
attempts- number of attempts- Returns:
- The current instance to chain operations if needed.
- See Also:
-
RabbitMQClient.restartConnect(int)
-
create
Create and return a client configured with the default options.- Parameters:
vertx- the vertx instance- Returns:
- the client
-
create
Create and return a client.- Parameters:
vertx- the vertx instanceconfig- the client config- Returns:
- the client
-
isConnected
public boolean isConnected()Check if a connection is open- Returns:
- true when the connection is open, false otherwise
- See Also:
-
ShutdownNotifier.isOpen()
-
isOpenChannel
public boolean isOpenChannel()Check if a channel is open- Returns:
- true when the connection is open, false otherwise
- See Also:
-
ShutdownNotifier.isOpen()
-
newInstance
Creates a new instance of theRabbitMQClient. -
hashCode
public int hashCode() -
equals
-
toString
-