Class DeadLetterOptions
java.lang.Object
com.azure.messaging.servicebus.models.DeadLetterOptions
Options to specify while putting message in dead-letter queue.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the error description for putting put message in dead letter sub-queue.Gets the reason for putting put message in dead letter sub-queue.Gets the message properties to modify while putting put message in dead letter sub-queue.Gets the transaction associated with the settlement operation.setDeadLetterErrorDescription
(String deadLetterErrorDescription) Sets the error description while putting message in dead letter sub-queue.setDeadLetterReason
(String deadLetterReason) Sets the reason while putting message in dead letter sub-queue.setPropertiesToModify
(Map<String, Object> propertiesToModify) Sets the message properties to modify while putting message in dead letter sub-queue.setTransactionContext
(ServiceBusTransactionContext transactionContext) Sets theServiceBusTransactionContext
to the options.
-
Constructor Details
-
DeadLetterOptions
public DeadLetterOptions()
-
-
Method Details
-
setDeadLetterReason
Sets the reason while putting message in dead letter sub-queue.- Parameters:
deadLetterReason
- while putting message in dead letter sub-queue.- Returns:
- The updated
DeadLetterOptions
object.
-
setDeadLetterErrorDescription
Sets the error description while putting message in dead letter sub-queue.- Parameters:
deadLetterErrorDescription
- while putting message in dead letter sub-queue.- Returns:
- The updated
DeadLetterOptions
object.
-
setPropertiesToModify
Sets the message properties to modify while putting message in dead letter sub-queue.- Parameters:
propertiesToModify
- Message properties to modify.- Returns:
- The updated
DeadLetterOptions
object.
-
getDeadLetterReason
Gets the reason for putting put message in dead letter sub-queue.- Returns:
- The reason for putting put message in dead letter sub-queue.
-
getDeadLetterErrorDescription
Gets the error description for putting put message in dead letter sub-queue.- Returns:
- The error description to for putting message in dead letter sub-queue.
-
getPropertiesToModify
Gets the message properties to modify while putting put message in dead letter sub-queue.- Returns:
- The message properties to modify while putting message in dead letter sub-queue.
-
setTransactionContext
Sets theServiceBusTransactionContext
to the options.- Parameters:
transactionContext
- TheServiceBusTransactionContext
that will be used to dead letter a message.- Returns:
- The updated
DeadLetterOptions
object. - See Also:
-
getTransactionContext
Gets the transaction associated with the settlement operation.- Returns:
- The transaction context associated with the settlement operation.
null
if there is none.
-