Skip to content

confusing examples of disableAutoComplete() #45839

Description

@bdw429s

Type of issue

Typo

Description

The first example of a processorClient in the "Receive messages" section has two calls to disableAutoComplete() which seems incorrect.

The next example of a processorClient in that section still calls disableAutoComplete() even though receiveMode(ServiceBusReceiveMode.RECEIVE_AND_DELETE) is being set, which also seems unnecessary.

The example in the "Create a dead-letter queue Receiver" section has the following comment in the code

// 'disableAutoComplete' indicates that users will explicitly settle their message.

even though the disableAutoComplete() method isn't called in that example at all!

Page URL

https://learn.microsoft.com/en-us/java/api/overview/azure/messaging-servicebus-readme?view=azure-java-stable

Content source URL

https://github.com/MicrosoftDocs/azure-docs-sdk-java/blob/master/docs-ref-services/latest/messaging-servicebus-readme.md

Document Version Independent Id

fd464b71-5dbe-4863-0e02-76080c6d8ba3

Platform Id

9c322fb7-3a50-12ef-edc4-a9ee10975bad

Article author

Azure SDK Bot (@azure-sdk)

Metadata

  • ID: 10341a8f-2866-d538-a11d-bb4f3dab8583
  • PlatformId: 9c322fb7-3a50-12ef-edc4-a9ee10975bad
  • Service: azure-service-bus

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.Service BusbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions