public enum ServiceBusReceiveMode extends Enum<ServiceBusReceiveMode>
Enum Constant and Description |
---|
PEEK_LOCK
In this mode, received message is not deleted from the queue or subscription, instead it is temporarily locked to
the receiver, making it invisible to other receivers.
|
RECEIVE_AND_DELETE
In this mode, received message is removed from the queue or subscription and immediately deleted.
|
Modifier and Type | Method and Description |
---|---|
static ServiceBusReceiveMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServiceBusReceiveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServiceBusReceiveMode PEEK_LOCK
ServiceBusReceiverClient.complete(ServiceBusReceivedMessage)
or
ServiceBusReceiverAsyncClient.complete(ServiceBusReceivedMessage)
and the message will be deleted.ServiceBusReceiverClient.abandon(ServiceBusReceivedMessage)
or
ServiceBusReceiverAsyncClient.abandon(ServiceBusReceivedMessage)
and the message will be unlocked and
made available to other receivers.ServiceBusReceiverClient.defer(ServiceBusReceivedMessage)
or
ServiceBusReceiverAsyncClient.defer(ServiceBusReceivedMessage)
and the message will be deferred. A
deferred can only be received by its sequence number.ServiceBusReceiverClient.deadLetter(ServiceBusReceivedMessage)
or
ServiceBusReceiverAsyncClient.deadLetter(ServiceBusReceivedMessage)
and the message will
be moved to a special sub-queue called dead-letter queue.abandon
, making the message available to other receiverspublic static final ServiceBusReceiveMode RECEIVE_AND_DELETE
public static ServiceBusReceiveMode[] values()
public static ServiceBusReceiveMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2021 Microsoft Corporation. All rights reserved.