Path of the entity for which the sender has been created.
Cancels a message that was scheduled to appear on a ServiceBus Queue/Subscription.
The sequence number of the message to be cancelled.
Options bag to pass an abort signal or tracing options.
Promise
Cancels multiple messages that were scheduled to appear on a ServiceBus Queue/Subscription.
An Array of sequence numbers of the messages to be cancelled.
Options bag to pass an abort signal or tracing options.
Promise
Closes the underlying AMQP sender link.
Once closed, the sender cannot be used for any further operations.
Use the createSender
function on the QueueClient or TopicClient to instantiate a new Sender
Creates an instance of ServiceBusMessageBatch
to which one can add messages until the maximum supported size is reached.
The batch can be passed to the send method to send the messages to Azure Service Bus.
Configures the behavior of the batch.
maxSizeInBytes
: The upper limit for the size of batch. The tryAdd
function will return false
after this limit is reached.Opens the AMQP link to Azure Service Bus from the sender.
It is not necessary to call this method in order to use the sender. It is recommended to call this before your first send() or sendBatch() call if you want to front load the work of setting up the AMQP link to the service.
Options bag to pass an abort signal.
Schedules given message to appear on Service Bus Queue/Subscription at a later time.
The UTC time at which the message should be enqueued.
The message that needs to be scheduled.
Options bag to pass an abort signal or tracing options.
PromiseLong
type as-is in your application without converting to number. Since JavaScript
only supports 53 bit numbers, converting the Long
to number will cause loss in precision.
Schedules given messages to appear on Service Bus Queue/Subscription at a later time.
The UTC time at which the messages should be enqueued.
Array of Messages that need to be scheduled.
Options bag to pass an abort signal or tracing options.
Promise<Long[]> - The sequence numbers of messages that were scheduled.
You will need the sequence number if you intend to cancel the scheduling of the messages.
Save the Long
type as-is in your application without converting to number. Since JavaScript
only supports 53 bit numbers, converting the Long
to number will cause loss in precision.
Sends the given message after creating an AMQP Sender link if it doesnt already exists.
To send a message to a session
and/or partition
enabled Queue/Topic, set the sessionId
and/or partitionKey
properties respectively on the message.
Message to send.
Options bag to pass an abort signal or tracing options.
Promise
Sends the given messages in a single batch i.e. in a single AMQP message after creating an AMQP Sender link if it doesn't already exist.
session
and/or partition
enabled Queue/Topic, set the sessionId
and/or partitionKey
properties respectively on the messages.sessionId
(if using
sessions) and the same partitionKey
(if using partitions).An array of ServiceBusMessage objects to be sent in a Batch message.
Options bag to pass an abort signal or tracing options.
Promise
Sends a batch of messages to the associated service-bus entity after creating an AMQP Sender link if it doesn't already exist.
session
and/or partition
enabled Queue/Topic, set the sessionId
and/or partitionKey
properties respectively on the messages.sessionId
(if using
sessions) and the same partitionKey
(if using partitions).A batch of messages that you can create using the createBatch method.
Options bag to pass an abort signal or tracing options.
Generated using TypeDoc
A Sender can be used to send messages, schedule messages to be sent at a later time and cancel such scheduled messages. Use the
createSender
function on the ServiceBusClient instantiate a Sender. The Sender class is an abstraction over the underlying AMQP sender link.