azure-docs-sdk-java/legacy/docs-ref-autogen/com.microsoft.azure.service...

71 строка
6.0 KiB
YAML

### YamlMime:JavaEnum
uid: "com.microsoft.azure.servicebus.ReceiveMode"
fullName: "com.microsoft.azure.servicebus.ReceiveMode"
name: "ReceiveMode"
nameWithType: "ReceiveMode"
summary: "Enumeration to represent the two receive modes Azure Service Bus supports."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
- "<xref href=\"java.lang.Enum?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html\">Enum</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#valueOf-java.lang.Class-java.lang.String-\">valueOf</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#compareTo-E-\">compareTo</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#getDeclaringClass--\">getDeclaringClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#name--\">name</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#ordinal--\">ordinal</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html#toString--\">toString</a>"
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public enum **ReceiveMode**</br> extends <a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html\">Enum</a>&lt;<xref href=\"com.microsoft.azure.servicebus.ReceiveMode?alt=com.microsoft.azure.servicebus.ReceiveMode&text=ReceiveMode\" data-throw-if-not-resolved=\"False\" />&gt;"
fields:
- uid: "com.microsoft.azure.servicebus.ReceiveMode.PEEKLOCK"
fullName: "com.microsoft.azure.servicebus.ReceiveMode.PEEKLOCK"
name: "PEEKLOCK"
nameWithType: "ReceiveMode.PEEKLOCK"
summary: "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."
desc: "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\n\n * If the receiver processes the message successfully, it calls `complete` and the message will be deleted.\n * If the receiver decides that it can't process the message successfully, it calls `abandon` and the message will be unlocked and made available to other receivers.\n * If the receiver wants to defer the processing of the message to a later point in time, it calls `defer` and the message will be deferred. A deferred can only be received by its sequence number.\n * If the receiver wants to dead-letter the message, it calls `deadLetter` and the message will be moved to a special sub-queue called deadletter queue.\n * If the receiver calls neither of these methods within a configurable period of time (by default, 60 seconds), the service assumes the receiver has failed. In this case, it behaves as if the receiver had called `abandon`, making the message available to other receivers"
- uid: "com.microsoft.azure.servicebus.ReceiveMode.RECEIVEANDDELETE"
fullName: "com.microsoft.azure.servicebus.ReceiveMode.RECEIVEANDDELETE"
name: "RECEIVEANDDELETE"
nameWithType: "ReceiveMode.RECEIVEANDDELETE"
summary: "In this mode, received message is removed from the queue or subscription and immediately deleted."
desc: "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."
methods:
- uid: "com.microsoft.azure.servicebus.ReceiveMode.valueOf(java.lang.String)"
fullName: "com.microsoft.azure.servicebus.ReceiveMode.valueOf(String name)"
name: "valueOf(String name)"
nameWithType: "ReceiveMode.valueOf(String name)"
modifiers:
- "static"
parameters:
- name: "name"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/String.html\">String</a>"
syntax: "public static ReceiveMode valueOf(String name)"
returns:
type: "<xref href=\"com.microsoft.azure.servicebus.ReceiveMode?alt=com.microsoft.azure.servicebus.ReceiveMode&text=ReceiveMode\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.microsoft.azure.servicebus.ReceiveMode.values()"
fullName: "com.microsoft.azure.servicebus.ReceiveMode.values()"
name: "values()"
nameWithType: "ReceiveMode.values()"
modifiers:
- "static"
syntax: "public static ReceiveMode[] values()"
returns:
type: "<xref href=\"com.microsoft.azure.servicebus.ReceiveMode?alt=com.microsoft.azure.servicebus.ReceiveMode&text=ReceiveMode\" data-throw-if-not-resolved=\"False\" />[]"
desc: "Enumeration to represent the two receive modes Azure Service Bus supports."
metadata: {}
package: "com.microsoft.azure.servicebus"
artifact: com.microsoft.azure:azure-servicebus:3.6.7