IMessageReceiver.deadLetter 方法

定义

重载

deadLetter(UUID lockToken)

Moves a Message to the deadletter sub-queue.

deadLetter(UUID lockToken, Map<String, Object> propertiesToModify)

Moves a Message to the deadletter sub-queue with modified message properties.

deadLetter(UUID lockToken, Map<String, Object> propertiesToModify, TransactionContext transaction)

Moves a Message to the deadletter sub-queue with modified message properties.

deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription)

Moves a Message to the deadletter sub-queue with deadletter reason and error description.

deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String, Object> propertiesToModify)

Moves a Message to the deadletter sub-queue with deadletter reason and error description and modified properties.

deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String, Object> propertiesToModify, TransactionContext transaction)

Moves a Message to the deadletter sub-queue with deadletter reason and error description and modified properties.

deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, TransactionContext transaction)

Moves a Message to the deadletter sub-queue with deadletter reason and error description.

deadLetter(UUID lockToken, TransactionContext transaction)

Moves a Message to the deadletter sub-queue.

deadLetter(UUID lockToken)

Moves a Message to the deadletter sub-queue.

public void deadLetter(UUID lockToken)

参数

lockToken
UUID

Message lock token getLockToken()

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if deadletter failed

deadLetter(UUID lockToken, Map<String, Object> propertiesToModify)

Moves a Message to the deadletter sub-queue with modified message properties.

public void deadLetter(UUID lockToken, Map<String, Object> propertiesToModify)

参数

lockToken
UUID

Message lock token getLockToken()

propertiesToModify
Map<String, Object>

Message properties to modify.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if deadletter failed

deadLetter(UUID lockToken, Map<String, Object> propertiesToModify, TransactionContext transaction)

Moves a Message to the deadletter sub-queue with modified message properties.

public void deadLetter(UUID lockToken, Map<String, Object> propertiesToModify, TransactionContext transaction)

参数

lockToken
UUID

Message lock token getLockToken()

propertiesToModify
Map<String, Object>

Message properties to modify.

transaction
TransactionContext

TransactionContext which this operation should enlist to.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if deadletter failed

deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription)

Moves a Message to the deadletter sub-queue with deadletter reason and error description.

public void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription)

参数

lockToken
UUID

Message lock token getLockToken()

deadLetterReason
String

The deadletter reason.

deadLetterErrorDescription
String

The deadletter error description.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if deadletter failed

deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String, Object> propertiesToModify)

Moves a Message to the deadletter sub-queue with deadletter reason and error description and modified properties.

public void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String, Object> propertiesToModify)

参数

lockToken
UUID

Message lock token getLockToken()

deadLetterReason
String

The deadletter reason.

deadLetterErrorDescription
String

The deadletter error description.

propertiesToModify
Map<String, Object>

Message properties to modify.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if deadletter failed

deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String, Object> propertiesToModify, TransactionContext transaction)

Moves a Message to the deadletter sub-queue with deadletter reason and error description and modified properties.

public void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, Map<String, Object> propertiesToModify, TransactionContext transaction)

参数

lockToken
UUID

Message lock token getLockToken()

deadLetterReason
String

The deadletter reason.

deadLetterErrorDescription
String

The deadletter error description.

propertiesToModify
Map<String, Object>

Message properties to modify.

transaction
TransactionContext

TransactionContext which this operation should enlist to.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if deadletter failed

deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, TransactionContext transaction)

Moves a Message to the deadletter sub-queue with deadletter reason and error description.

public void deadLetter(UUID lockToken, String deadLetterReason, String deadLetterErrorDescription, TransactionContext transaction)

参数

lockToken
UUID

Message lock token getLockToken()

deadLetterReason
String

The deadletter reason.

deadLetterErrorDescription
String

The deadletter error description.

transaction
TransactionContext

TransactionContext which this operation should enlist to.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if deadletter failed

deadLetter(UUID lockToken, TransactionContext transaction)

Moves a Message to the deadletter sub-queue.

public void deadLetter(UUID lockToken, TransactionContext transaction)

参数

lockToken
UUID

Message lock token getLockToken()

transaction
TransactionContext

TransactionContext which this operation should enlist to.

例外

InterruptedException

if the current thread was interrupted while waiting

ServiceBusException

if deadletter failed

适用于