Creates a new MessageSender instance.
The client entity context.
Closes the Sender|Receiver link and it's underlying session and also removes it from the internal map.
Ensures that the token is renewed within the predefined renewal margin.
Negotiates the cbs claim for the ClientEntity.
Promise
Deletes the sender from the context. Clears the token renewal timer. Closes the sender link.
Promise
Returns maximum message size on the AMQP sender link.
Options to configure the createBatch
method on the Sender
.
maxSizeInBytes
: The upper limit for the size of batch.Example usage:
{
retryOptions: { maxRetries: 5; timeoutInMs: 10 }
}
Determines whether the AMQP sender link is open. If open then returns true else returns false.
boolean
Will reconnect the sender link if necessary.
Promise
Initializes the sender session on the connection.
Sends the given message, with the given options on this link
Message to send. Will be sent as UTF8-encoded JSON string.
Send a batch of Message to the ServiceBus in a single AMQP message. The "message_annotations", "application_properties" and "properties" of the first message will be set as that of the envelope (batch message).
An array of Message objects to be sent in a Batch message.
Creates a new sender to the specific ServiceBus entity, and optionally to a given partition if it is not present in the context or returns the one present in the context.
Generated using TypeDoc
Describes the MessageSender that will send messages to ServiceBus.