ReceiveMode Enum
- java.
lang. Object - java.
lang. Enum<ReceiveMode> - com.
microsoft. azure. servicebus. ReceiveMode
- com.
- java.
public enum ReceiveMode
Enumeration to represent the two receive modes Azure Service Bus supports.
Fields
PEEKLOCK |
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. Then the service waits for one of the three events
|
RECEIVEANDDELETE |
In this mode, received message is removed from the queue or subscription and immediately deleted. This option is simple, but if the receiver crashes before it finishes processing the message, the message is lost. Because it's been removed from the queue, no other receiver can access it. |
Applies to
Azure SDK for Java