azure-messaging-servicebus_7.0.0-beta.7
Pre-release
Pre-release
7.0.0-beta.7 (2020-11-06)
New Features
- Added automatic message and session lock renewal feature on the receiver clients. By default, this will be done
for 5 minutes. - Added auto complete feature to the async receiver clients. Once the client completes executing the user provided
callback for a message, the message will be completed. If the user provided callback throws an error, the message
will be abandoned. This feature is enabled by default and can be disabled by callingdisableAutoComplete()
on
builder. - An intermediate
ServiceBusSessionReceiverClient
is introduced to act as the factory which can then be used to accept
sessions from the service. Accepting a session would give you the familiar receiver client tied to a single session. - Added
ServiceBusProcessorClient
which takes your callbacks to process messages and errors in an infinite loop. This
also supports working with sessions where you can provide the maximum number of sessions to work with concurrently.
When the client no longer receives any messages from one session, it rolls over to the next available session. - Added
BinaryData
inServiceBusReceivedMessage
andServiceBusMessage
.BinaryData
is convenience wrapper over
byte array and provides object serialization functionality. - Added
ServicebusReceiverException
andServiceBusErrorSource
to provide better handling of errors while receiving
messages.
Breaking Changes
- Changed
receiveMessages
API to returnServiceBusReceivedMessage
instead of ServiceBusReceivedMessageContext in
ServiceBusReceiverAsynClient
andServiceBusReceiverClient
. - Removed
SendVia
option fromServiceBusClientBuilder
. See issue for more detail
16942. - Removed
sessionId
setting fromServiceBusSessionReceiverClientBuilder
as creating receiver clients bound to a
single session is now a feature in the new intermediate clientsServiceBusSessionReceiverClient
and
ServiceBusSessionReceiverAsyncClient
. - Moved the
maxConcurrentSessions
setting fromServiceBusSessionReceiverClientBuilder
to
ServiceBusSessionProcessorClientBuilder
as the feature of receiving messages from multiple sessions is moved from
the receiver client to the newServiceBusSessionProcessorClient
. - Renamed
tryAdd
totryAddMessage
inServiceBusMessageBatch
. - Removed
sessionId
specific methods fromServiceBusReceiverAsynClient
andServiceBusReceiverClient
because now
receiver client is always tied to one session.
Bug Fixes
ServiceBusAdministrationClient
: Fixes serialization bug for creating and deserializing rules.
Dependency Updates
- Added new
azure-core-experimental
dependency with version1.0.0-beta.8
. - Upgraded
azure-core
dependency to1.10.0
. - Upgraded
azure-core-amqp
dependency to1.7.0-beta.1
.