Class AmqpConnection
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- See Also:
-
AmqpConnection
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAmqpConnection(io.vertx.amqp.AmqpConnection delegate) Create a new instance ofAmqpConnectiondelegating to the given (non-null) instance ofAmqpConnection.AmqpConnection(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>close()Closes the AMQP connection, i.e. allows the Close frame to be emitted.voidCloses the AMQP connection, i.e. allows the Close frame to be emitted.Closes the AMQP connection, i.e. allows the Close frame to be emitted.io.smallrye.mutiny.Uni<Void>Unlike the bare Vert.x variant, this method returns aUni.voidUnlike the bare Vert.x variant, this method returns aVoid.Unlike the bare Vert.x variant, this method ignores theVoidresult or any failure.io.smallrye.mutiny.Uni<AmqpSender>Creates an anonymous sender.Creates an anonymous sender.Creates an anonymous sender.io.smallrye.mutiny.Uni<AmqpReceiver>Creates a dynamic receiver.Creates a dynamic receiver.Creates a dynamic receiver.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.booleanexceptionHandler(Consumer<Throwable> handler) Registers a handler called on disconnection.io.vertx.amqp.AmqpConnectionGet the delegate instance.inthashCode()booleanstatic AmqpConnectionnewInstance(io.vertx.amqp.AmqpConnection delegate) Creates a new instance of theAmqpConnection.toString()io.vertx.proton.ProtonConnectionunwrap()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
AmqpConnection
public AmqpConnection(io.vertx.amqp.AmqpConnection delegate) Create a new instance ofAmqpConnectiondelegating to the given (non-null) instance ofAmqpConnection. -
AmqpConnection
-
-
Method Details
-
getDelegate
public io.vertx.amqp.AmqpConnection 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
-
close
Closes the AMQP connection, i.e. allows the Close frame to be emitted.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:
-
AmqpConnection.close()
-
closeAndAwait
public void closeAndAwait()Closes the AMQP connection, i.e. allows the Close frame to be emitted.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:
-
AmqpConnection.close()
-
closeAndForget
Closes the AMQP connection, i.e. allows the Close frame to be emitted.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:
-
AmqpConnection.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.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:
-
AmqpConnection.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.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:
-
AmqpConnection.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.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:
-
AmqpConnection.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.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:
-
AmqpConnection.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.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:
-
AmqpConnection.createReceiver(String, AmqpReceiverOptions)
-
createReceiverAndForget
public AmqpConnection createReceiverAndForget(String address, io.vertx.amqp.AmqpReceiverOptions receiverOptions) Creates a receiver used to consumer messages from the given address.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:
-
AmqpConnection.createReceiver(String, AmqpReceiverOptions)
-
createDynamicReceiver
Creates a dynamic receiver. The address is provided by the broker and is available in thecompletionHandler, using theAmqpReceiver.address()method. this method is useful for request-reply to generate a unique reply address.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:
-
AmqpConnection.createDynamicReceiver()
-
createDynamicReceiverAndAwait
Creates a dynamic receiver. The address is provided by the broker and is available in thecompletionHandler, using theAmqpReceiver.address()method. this method is useful for request-reply to generate a unique reply address.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).- Returns:
- The operation result
- See Also:
-
AmqpConnection.createDynamicReceiver()
-
createDynamicReceiverAndForget
Creates a dynamic receiver. The address is provided by the broker and is available in thecompletionHandler, using theAmqpReceiver.address()method. this method is useful for request-reply to generate a unique reply address.Unlike the bare Vert.x variant, this method ignores the
AmqpReceiverresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AmqpConnection.createDynamicReceiver()
-
createSender
Creates a sender used to send messages to the given address. The address must be set. For anonymous sender, checkcreateAnonymousSender().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:
-
createAnonymousSender()AmqpConnection.createSender(String)
-
createSenderAndAwait
Creates a sender used to send messages to the given address. The address must be set. For anonymous sender, checkcreateAnonymousSender().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:
-
createAnonymousSender()AmqpConnection.createSender(String)
-
createSenderAndForget
Creates a sender used to send messages to the given address. The address must be set. For anonymous sender, checkcreateAnonymousSender().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:
-
createAnonymousSender()AmqpConnection.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. For anonymous sender, checkcreateAnonymousSender().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, allowed to benullif theoptionsconfigures the sender to be attached to a dynamic address (provided by the broker).options- The AMQP sender options- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
createAnonymousSender()AmqpConnection.createSender(String, AmqpSenderOptions)
-
createSenderAndAwait
Creates a sender used to send messages to the given address. The address must be set. For anonymous sender, checkcreateAnonymousSender().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, allowed to benullif theoptionsconfigures the sender to be attached to a dynamic address (provided by the broker).options- The AMQP sender options- Returns:
- The operation result
- See Also:
-
createAnonymousSender()AmqpConnection.createSender(String, AmqpSenderOptions)
-
createSenderAndForget
public AmqpConnection createSenderAndForget(String address, io.vertx.amqp.AmqpSenderOptions options) Creates a sender used to send messages to the given address. The address must be set. For anonymous sender, checkcreateAnonymousSender().Unlike the bare Vert.x variant, this method ignores the
AmqpSenderresult or any failure.- Parameters:
address- The target address to attach to, allowed to benullif theoptionsconfigures the sender to be attached to a dynamic address (provided by the broker).options- The AMQP sender options- Returns:
- The current instance to chain operations if needed.
- See Also:
-
createAnonymousSender()AmqpConnection.createSender(String, AmqpSenderOptions)
-
createAnonymousSender
Creates an anonymous sender.Unlike "regular" sender, this sender is not associated to a specific address, and each message sent must provide an address. This method can be used in request-reply scenarios where you create a sender to send the reply, but you don't know the address, as the reply address is passed into the message you are going to receive.
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:
-
AmqpConnection.createAnonymousSender()
-
createAnonymousSenderAndAwait
Creates an anonymous sender.Unlike "regular" sender, this sender is not associated to a specific address, and each message sent must provide an address. This method can be used in request-reply scenarios where you create a sender to send the reply, but you don't know the address, as the reply address is passed into the message you are going to receive.
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).- Returns:
- The operation result
- See Also:
-
AmqpConnection.createAnonymousSender()
-
createAnonymousSenderAndForget
Creates an anonymous sender.Unlike "regular" sender, this sender is not associated to a specific address, and each message sent must provide an address. This method can be used in request-reply scenarios where you create a sender to send the reply, but you don't know the address, as the reply address is passed into the message you are going to receive.
Unlike the bare Vert.x variant, this method ignores the
AmqpSenderresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
AmqpConnection.createAnonymousSender()
-
closeFuture
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:
-
AmqpConnection.closeFuture()
-
closeFutureAndAwait
public void closeFutureAndAwait()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:
-
AmqpConnection.closeFuture()
-
closeFutureAndForget
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:
-
AmqpConnection.closeFuture()
-
exceptionHandler
Registers a handler called on disconnection.- Parameters:
handler- the exception handler.- Returns:
- the connection
-
isDisconnected
public boolean isDisconnected()- Returns:
- whether the connection has been disconnected.
-
unwrap
public io.vertx.proton.ProtonConnection unwrap()- Returns:
- the underlying ProtonConnection.
-
newInstance
Creates a new instance of theAmqpConnection. -
hashCode
public int hashCode() -
equals
-
toString
-