Closes all the AMQP links for sender/receivers created by this client. Once closed, neither the QueueClient nor its sender/receivers can be used for any further operations.
Creates a Receiver for receiving messages from a Queue which does not have sessions enabled.
An enum indicating the mode in which messages should be received. Possible values are:
ReceiveMode.peekLock
: Once a message is received in this mode, the receiver has a lock on
the message for a particular duration. If the message is not settled by this time, it lands back
on Service Bus to be fetched by the next receive operation.ReceiveMode.receiveAndDelete
: Messages received in this mode get automatically removed from
Service Bus.Receiver A receiver to receive messages from a Queue which does not have sessions enabled.
Creates a Receiver for receiving messages from a session enabled Queue. When no sessionId is given, a random session among the available sessions is used.
An enum indicating the mode in which messages should be received. Possible values are:
ReceiveMode.peekLock
: Once a message is received in this mode, the receiver has a lock on
the message for a particular duration. If the message is not settled by this time, it lands back
on Service Bus to be fetched by the next receive operation.ReceiveMode.receiveAndDelete
: Messages received in this mode get automatically removed from
Service Bus.Options to provide sessionId and duration of automatic lock renewal for the session receiver.
SessionReceiver A receiver to receive from a session in the Queue.
Creates a Sender to be used for sending messages, scheduling messages to be sent at a later time and cancelling such scheduled messages.
Fetches the next batch of active messages (including deferred but not deadlettered messages).
peek()
fetches the first active message. Each subsequent call fetches the
subsequent message.received
message, peeked
message is a read-only version of the message.
It cannot be Completed/Abandoned/Deferred/Deadlettered
. The lock on it cannot be renewed.Promise<ReceivedMessageInfo[]>
Peeks the desired number of active messages (including deferred but not deadlettered messages) from the specified sequence number.
received
message, peeked
message is a read-only version of the message.
It cannot be Completed/Abandoned/Deferred/Deadlettered
. The lock on it cannot be renewed.The sequence number from where to read the message.
Promise<ReceivedMessageInfo[]>
Returns the corresponding dead letter queue name for the queue represented by the given name.
Use this in the createQueueClient
function on the ServiceBusClient
instance to receive
messages from a dead letter queue.
Name of the queue whose dead letter counterpart's name is being fetched
Generated using TypeDoc
Describes the client that allows interacting with a Service Bus Queue. Use the
createQueueClient
function on the ServiceBusClient object to instantiate a QueueClient