public enum ReceiveMode extends Enum<ReceiveMode>
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 ReceiveMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReceiveMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReceiveMode PEEK_LOCK
complete
and the message
will be deleted.abandon
and the message will be unlocked and made available to other receivers.defer
and the message will be deferred. A deferred can only be received by its sequence number.deadLetter
and the message will
be moved to a special sub-queue called deadletter queue.abandon
, making the message available to other receiverspublic static final ReceiveMode RECEIVE_AND_DELETE
public static ReceiveMode[] values()
public static ReceiveMode 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 © 2020 Microsoft Corporation. All rights reserved.