github Azure/azure-sdk-for-java azure-messaging-servicebus_7.0.0-beta.7

latest releases: azure-messaging-eventgrid-namespaces_1.0.0-beta.1, azure-resourcemanager-datafactory_1.0.0-beta.28, azure-resourcemanager-postgresqlflexibleserver_1.1.0-beta.3...
pre-release3 years ago

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 calling disableAutoComplete() 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 in ServiceBusReceivedMessage and ServiceBusMessage. BinaryData is convenience wrapper over
    byte array and provides object serialization functionality.
  • Added ServicebusReceiverException and ServiceBusErrorSource to provide better handling of errors while receiving
    messages.

Breaking Changes

  • Changed receiveMessages API to return ServiceBusReceivedMessage instead of ServiceBusReceivedMessageContext in
    ServiceBusReceiverAsynClient and ServiceBusReceiverClient.
  • Removed SendVia option from ServiceBusClientBuilder. See issue for more detail
    16942.
  • Removed sessionId setting from ServiceBusSessionReceiverClientBuilder as creating receiver clients bound to a
    single session is now a feature in the new intermediate clients ServiceBusSessionReceiverClient and
    ServiceBusSessionReceiverAsyncClient.
  • Moved the maxConcurrentSessions setting from ServiceBusSessionReceiverClientBuilder to
    ServiceBusSessionProcessorClientBuilder as the feature of receiving messages from multiple sessions is moved from
    the receiver client to the new ServiceBusSessionProcessorClient.
  • Renamed tryAdd to tryAddMessage in ServiceBusMessageBatch.
  • Removed sessionId specific methods from ServiceBusReceiverAsynClient and ServiceBusReceiverClient 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 version 1.0.0-beta.8.
  • Upgraded azure-core dependency to 1.10.0.
  • Upgraded azure-core-amqp dependency to 1.7.0-beta.1.

Don't miss a new azure-sdk-for-java release

NewReleases is sending notifications on new releases.