public final class RejectedDeliveryOutcome extends DeliveryOutcome
At the target, the rejected outcome is used to indicate that an incoming message is invalid and therefore unprocessable. The rejected outcome when applied to a message will cause the delivery-count to be incremented in the header of the rejected message.
At the source, the rejected outcome means that the target has informed the source that the message was rejected, and the source has taken the necessary action. The delivery SHOULD NOT ever spontaneously attain the rejected state at the source.
| Constructor and Description |
|---|
RejectedDeliveryOutcome(AmqpErrorCondition errorCondition)
Creates an instance with the given error condition.
|
| Modifier and Type | Method and Description |
|---|---|
AmqpErrorCondition |
getErrorCondition()
Diagnostic information about the cause of the message rejection.
|
String |
getErrorDescription()
Gets the error description.
|
Map<String,Object> |
getErrorInfo()
Gets a map of additional error information.
|
RejectedDeliveryOutcome |
setErrorInfo(Map<String,Object> errorInfo)
Sets a map with additional error information.
|
getDeliveryStatepublic RejectedDeliveryOutcome(AmqpErrorCondition errorCondition)
errorCondition - The error condition.public AmqpErrorCondition getErrorCondition()
public String getErrorDescription()
public Map<String,Object> getErrorInfo()
public RejectedDeliveryOutcome setErrorInfo(Map<String,Object> errorInfo)
errorInfo - Error information associated with the rejection.RejectedDeliveryOutcome object.Copyright © 2021 Microsoft Corporation. All rights reserved.