Class AmqpClient
- All Implemented Interfaces:
MutinyDelegate
AmqpClient and connect to a broker and server.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
AmqpClient
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAmqpClient(io.vertx.amqp.AmqpClient delegate) Create a new instance ofAmqpClientdelegating to the given (non-null) instance ofAmqpClient.AmqpClient(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>close()Closes the client.voidCloses the client.Closes the client.io.smallrye.mutiny.Uni<AmqpConnection>connect()Connects to the AMQP broker or router.Connects to the AMQP broker or router.Connects to the AMQP broker or router.static AmqpClientcreate(io.vertx.amqp.AmqpClientOptions options) Creates a new instance ofAmqpClientusing an internal Vert.x instance (with default configuration) and the given AMQP client configuration.static AmqpClientCreates a new instance ofAmqpClientwith the given Vert.x instance and the given options.io.smallrye.mutiny.Uni<AmqpReceiver>createReceiver(String address) Creates a receiver used to consume messages from the given address.io.smallrye.mutiny.Uni<AmqpReceiver>createReceiver(String address, io.vertx.amqp.AmqpReceiverOptions receiverOptions) Creates a receiver used to consumer messages from the given address.createReceiverAndAwait(String address) Creates a receiver used to consume messages from the given address.createReceiverAndAwait(String address, io.vertx.amqp.AmqpReceiverOptions receiverOptions) Creates a receiver used to consumer messages from the given address.createReceiverAndForget(String address) Creates a receiver used to consume messages from the given address.createReceiverAndForget(String address, io.vertx.amqp.AmqpReceiverOptions receiverOptions) Creates a receiver used to consumer messages from the given address.io.smallrye.mutiny.Uni<AmqpSender>createSender(String address) Creates a sender used to send messages to the given address.io.smallrye.mutiny.Uni<AmqpSender>createSender(String address, io.vertx.amqp.AmqpSenderOptions options) Creates a sender used to send messages to the given address.createSenderAndAwait(String address) Creates a sender used to send messages to the given address.createSenderAndAwait(String address, io.vertx.amqp.AmqpSenderOptions options) Creates a sender used to send messages to the given address.createSenderAndForget(String address) Creates a sender used to send messages to the given address.createSenderAndForget(String address, io.vertx.amqp.AmqpSenderOptions options) Creates a sender used to send messages to the given address.booleanio.vertx.amqp.AmqpClientGet the delegate instance.inthashCode()static AmqpClientnewInstance(io.vertx.amqp.AmqpClient delegate) Creates a new instance of theAmqpClient.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
AmqpClient
public AmqpClient(io.vertx.amqp.AmqpClient delegate) Create a new instance ofAmqpClientdelegating to the given (non-null) instance ofAmqpClient. -
AmqpClient
-
-
Method Details
-
getDelegate
public io.vertx.amqp.AmqpClient 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
-
connect
Connects to the AMQP broker or router. The location is specified in theAmqpClientOptionsas well as the potential credential required.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:
-
AmqpClient.connect()
-
connectAndAwait
Connects to the AMQP broker or router. The location is specified in theAmqpClientOptionsas well as the potential credential required.Unlike the bare Vert.x variant, this method returns a
AmqpConnection. 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:
-
AmqpClient.connect()
-
connectAndForget
Connects to the AMQP broker or router. The location is specified in theAmqpClientOptionsas well as the potential credential required.Unlike the bare Vert.x variant, this method ignores the
AmqpConnectionresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AmqpClient.connect()
-
close
Closes the client. The client must always be closed once not needed anymore.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:
-
AmqpClient.close()
-
closeAndAwait
public void closeAndAwait()Closes the client. The client must always be closed once not needed anymore.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:
-
AmqpClient.close()
-
closeAndForget
Closes the client. The client must always be closed once not needed anymore.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:
-
AmqpClient.close()
-
createReceiver
Creates a receiver used to consume messages from the given address. The receiver has no handler and won't start receiving messages until a handler is explicitly configured. This method avoids having to connect explicitly. You can retrieve the connection usingAmqpReceiver.connection().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:
address- The source address to attach the consumer to, must not benull- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
AmqpClient.createReceiver(String)
-
createReceiverAndAwait
Creates a receiver used to consume messages from the given address. The receiver has no handler and won't start receiving messages until a handler is explicitly configured. This method avoids having to connect explicitly. You can retrieve the connection usingAmqpReceiver.connection().Unlike the bare Vert.x variant, this method returns a
AmqpReceiver. 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:
address- The source address to attach the consumer to, must not benull- Returns:
- The operation result
- See Also:
-
AmqpClient.createReceiver(String)
-
createReceiverAndForget
Creates a receiver used to consume messages from the given address. The receiver has no handler and won't start receiving messages until a handler is explicitly configured. This method avoids having to connect explicitly. You can retrieve the connection usingAmqpReceiver.connection().Unlike the bare Vert.x variant, this method ignores the
AmqpReceiverresult or any failure.- Parameters:
address- The source address to attach the consumer to, must not benull- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AmqpClient.createReceiver(String)
-
createReceiver
@CheckReturnValue public io.smallrye.mutiny.Uni<AmqpReceiver> createReceiver(String address, io.vertx.amqp.AmqpReceiverOptions receiverOptions) Creates a receiver used to consumer messages from the given address. This method avoids having to connect explicitly. You can retrieve the connection usingAmqpReceiver.connection().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:
address- The source address to attach the consumer to.receiverOptions- The options for this receiver.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
AmqpClient.createReceiver(String, AmqpReceiverOptions)
-
createReceiverAndAwait
public AmqpReceiver createReceiverAndAwait(String address, io.vertx.amqp.AmqpReceiverOptions receiverOptions) Creates a receiver used to consumer messages from the given address. This method avoids having to connect explicitly. You can retrieve the connection usingAmqpReceiver.connection().Unlike the bare Vert.x variant, this method returns a
AmqpReceiver. 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:
address- The source address to attach the consumer to.receiverOptions- The options for this receiver.- Returns:
- The operation result
- See Also:
-
AmqpClient.createReceiver(String, AmqpReceiverOptions)
-
createReceiverAndForget
public AmqpClient createReceiverAndForget(String address, io.vertx.amqp.AmqpReceiverOptions receiverOptions) Creates a receiver used to consumer messages from the given address. This method avoids having to connect explicitly. You can retrieve the connection usingAmqpReceiver.connection().Unlike the bare Vert.x variant, this method ignores the
AmqpReceiverresult or any failure.- Parameters:
address- The source address to attach the consumer to.receiverOptions- The options for this receiver.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AmqpClient.createReceiver(String, AmqpReceiverOptions)
-
createSender
Creates a sender used to send messages to the given address. The address must be set.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:
address- The target address to attach to, must not benull- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
AmqpClient.createSender(String)
-
createSenderAndAwait
Creates a sender used to send messages to the given address. The address must be set.Unlike the bare Vert.x variant, this method returns a
AmqpSender. 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:
address- The target address to attach to, must not benull- Returns:
- The operation result
- See Also:
-
AmqpClient.createSender(String)
-
createSenderAndForget
Creates a sender used to send messages to the given address. The address must be set.Unlike the bare Vert.x variant, this method ignores the
AmqpSenderresult or any failure.- Parameters:
address- The target address to attach to, must not benull- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AmqpClient.createSender(String)
-
createSender
@CheckReturnValue public io.smallrye.mutiny.Uni<AmqpSender> createSender(String address, io.vertx.amqp.AmqpSenderOptions options) Creates a sender used to send messages to the given address. The address must be set.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:
address- The target address to attach to, must not benulloptions- The options for this sender.- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
AmqpClient.createSender(String, AmqpSenderOptions)
-
createSenderAndAwait
Creates a sender used to send messages to the given address. The address must be set.Unlike the bare Vert.x variant, this method returns a
AmqpSender. 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:
address- The target address to attach to, must not benulloptions- The options for this sender.- Returns:
- The operation result
- See Also:
-
AmqpClient.createSender(String, AmqpSenderOptions)
-
createSenderAndForget
Creates a sender used to send messages to the given address. The address must be set.Unlike the bare Vert.x variant, this method ignores the
AmqpSenderresult or any failure.- Parameters:
address- The target address to attach to, must not benulloptions- The options for this sender.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AmqpClient.createSender(String, AmqpSenderOptions)
-
create
Creates a new instance ofAmqpClientusing an internal Vert.x instance (with default configuration) and the given AMQP client configuration. Note that the created Vert.x instance will be closed when the client is closed.- Parameters:
options- the AMQP client options, may benullfalling back to the default configuration- Returns:
- the created instances.
-
create
Creates a new instance ofAmqpClientwith the given Vert.x instance and the given options.- Parameters:
vertx- the vert.x instance, must not benulloptions- the AMQP options, may be @{code null} falling back to the default configuration- Returns:
- the AMQP client instance
-
newInstance
Creates a new instance of theAmqpClient. -
hashCode
public int hashCode() -
equals
-
toString
-