|
254 | 254 | * .disableAutoComplete() // Make sure to explicitly opt in to manual settlement (e.g. complete, abandon). |
255 | 255 | * .processMessage(processMessage) |
256 | 256 | * .processError(processError) |
257 | | - * .disableAutoComplete() |
258 | 257 | * .buildProcessorClient(); |
259 | 258 | * |
260 | 259 | * // Starts the processor in the background. Control returns immediately. |
@@ -2333,7 +2332,6 @@ private ServiceBusSessionReceiverAsyncClient buildAsyncClient(boolean isForSyncM |
2333 | 2332 | * .disableAutoComplete() // Make sure to explicitly opt in to manual settlement (e.g. complete, abandon). |
2334 | 2333 | * .processMessage(processMessage) |
2335 | 2334 | * .processError(processError) |
2336 | | - * .disableAutoComplete() |
2337 | 2335 | * .buildProcessorClient(); |
2338 | 2336 | * |
2339 | 2337 | * // Starts the processor in the background. Control returns immediately. |
@@ -2370,15 +2368,13 @@ private ServiceBusSessionReceiverAsyncClient buildAsyncClient(boolean isForSyncM |
2370 | 2368 | * |
2371 | 2369 | * // Create the processor client via the builder and its sub-builder |
2372 | 2370 | * // 'fullyQualifiedNamespace' will look similar to "{your-namespace}.servicebus.windows.net" |
2373 | | - * // 'disableAutoComplete()' will opt in to manual settlement (e.g. complete, abandon). |
2374 | 2371 | * ServiceBusProcessorClient processorClient = new ServiceBusClientBuilder() |
2375 | 2372 | * .credential(fullyQualifiedNamespace, tokenCredential) |
2376 | 2373 | * .processor() |
2377 | 2374 | * .queueName(queueName) |
2378 | 2375 | * .receiveMode(ServiceBusReceiveMode.RECEIVE_AND_DELETE) |
2379 | 2376 | * .processMessage(processMessage) |
2380 | 2377 | * .processError(processError) |
2381 | | - * .disableAutoComplete() |
2382 | 2378 | * .buildProcessorClient(); |
2383 | 2379 | * |
2384 | 2380 | * // Starts the processor in the background. Control returns immediately. |
|
0 commit comments