Package | Description |
---|---|
com.azure.messaging.servicebus |
Package containing classes for creating
ServiceBusSenderAsyncClient ,
ServiceBusProcessorClient , and
ServiceBusReceiverAsyncClient to perform operations on Azure Service Bus. |
com.azure.messaging.servicebus.models |
Model classes for interacting with Azure Service Bus.
|
Modifier and Type | Method and Description |
---|---|
void |
ServiceBusReceivedMessageContext.deadLetter(DeadLetterOptions options)
Dead-letters the
message in this context. |
void |
ServiceBusReceiverClient.deadLetter(ServiceBusReceivedMessage message,
DeadLetterOptions options)
Moves a
message to the dead-letter sub-queue with dead-letter reason, error
description, and/or modified properties. |
Mono<Void> |
ServiceBusReceiverAsyncClient.deadLetter(ServiceBusReceivedMessage message,
DeadLetterOptions options)
Moves a
message to the dead-letter sub-queue with the given options. |
Modifier and Type | Method and Description |
---|---|
DeadLetterOptions |
DeadLetterOptions.setDeadLetterErrorDescription(String deadLetterErrorDescription)
Sets the error description while putting message in dead letter sub-queue.
|
DeadLetterOptions |
DeadLetterOptions.setDeadLetterReason(String deadLetterReason)
Sets the reason while putting message in dead letter sub-queue.
|
DeadLetterOptions |
DeadLetterOptions.setPropertiesToModify(Map<String,Object> propertiesToModify)
Sets the message properties to modify while putting message in dead letter sub-queue.
|
DeadLetterOptions |
DeadLetterOptions.setTransactionContext(ServiceBusTransactionContext transactionContext)
Sets the
ServiceBusTransactionContext to the options. |
Copyright © 2021 Microsoft Corporation. All rights reserved.