public class AmqpClient extends Object
AmqpClient
and connect to a broker and server.
NOTE: This class has been automatically generated from the original
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<AmqpClient> |
__TYPE_ARG |
Constructor and Description |
---|
AmqpClient(AmqpClient delegate) |
AmqpClient(Object delegate) |
Modifier and Type | Method and Description |
---|---|
Completable |
close()
Closes the client.
|
Single<AmqpConnection> |
connect()
Connects to the AMQP broker or router.
|
static AmqpClient |
create(AmqpClientOptions options)
Creates a new instance of
AmqpClient using an internal Vert.x instance (with default configuration) and
the given AMQP client configuration. |
static AmqpClient |
create(Vertx vertx,
AmqpClientOptions options)
Creates a new instance of
AmqpClient with the given Vert.x instance and the given options. |
Single<AmqpReceiver> |
createReceiver(String address)
Creates a receiver used to consume messages from the given address.
|
Single<AmqpReceiver> |
createReceiver(String address,
AmqpReceiverOptions receiverOptions)
Creates a receiver used to consumer messages from the given address.
|
Single<AmqpSender> |
createSender(String address)
Creates a sender used to send messages to the given address.
|
Single<AmqpSender> |
createSender(String address,
AmqpSenderOptions options)
Creates a sender used to send messages to the given address.
|
boolean |
equals(Object o) |
AmqpClient |
getDelegate() |
int |
hashCode() |
static AmqpClient |
newInstance(AmqpClient arg) |
Completable |
rxClose()
Closes the client.
|
Single<AmqpConnection> |
rxConnect()
Connects to the AMQP broker or router.
|
Single<AmqpReceiver> |
rxCreateReceiver(String address)
Creates a receiver used to consume messages from the given address.
|
Single<AmqpReceiver> |
rxCreateReceiver(String address,
AmqpReceiverOptions receiverOptions)
Creates a receiver used to consumer messages from the given address.
|
Single<AmqpSender> |
rxCreateSender(String address)
Creates a sender used to send messages to the given address.
|
Single<AmqpSender> |
rxCreateSender(String address,
AmqpSenderOptions options)
Creates a sender used to send messages to the given address.
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<AmqpClient> __TYPE_ARG
public AmqpClient(AmqpClient delegate)
public AmqpClient(Object delegate)
public AmqpClient getDelegate()
public static AmqpClient create(AmqpClientOptions options)
AmqpClient
using 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.options
- the AMQP client options, may be null
falling back to the default configurationpublic static AmqpClient create(Vertx vertx, AmqpClientOptions options)
AmqpClient
with the given Vert.x instance and the given options.vertx
- the vert.x instance, must not be null
options
- the AMQP options, may be @{code null} falling back to the default configurationpublic Single<AmqpConnection> connect()
AmqpClientOptions
as well as the
potential credential required.public Single<AmqpConnection> rxConnect()
AmqpClientOptions
as well as the
potential credential required.public Completable close()
public Completable rxClose()
public Single<AmqpReceiver> createReceiver(String address)
AmqpReceiver.connection()
.address
- The source address to attach the consumer to, must not be null
public Single<AmqpReceiver> rxCreateReceiver(String address)
AmqpReceiver.connection()
.address
- The source address to attach the consumer to, must not be null
public Single<AmqpReceiver> createReceiver(String address, AmqpReceiverOptions receiverOptions)
AmqpReceiver.connection()
.address
- The source address to attach the consumer to.receiverOptions
- The options for this receiver.public Single<AmqpReceiver> rxCreateReceiver(String address, AmqpReceiverOptions receiverOptions)
AmqpReceiver.connection()
.address
- The source address to attach the consumer to.receiverOptions
- The options for this receiver.public Single<AmqpSender> createSender(String address)
address
- The target address to attach to, must not be null
public Single<AmqpSender> rxCreateSender(String address)
address
- The target address to attach to, must not be null
public Single<AmqpSender> createSender(String address, AmqpSenderOptions options)
address
- The target address to attach to, must not be null
options
- The options for this sender.public Single<AmqpSender> rxCreateSender(String address, AmqpSenderOptions options)
address
- The target address to attach to, must not be null
options
- The options for this sender.public static AmqpClient newInstance(AmqpClient arg)
Copyright © 2021 Eclipse. All rights reserved.