azure-docs-sdk-java/docs-ref-autogen/com.azure.messaging.eventhu...

72 строки
6.4 KiB
YAML

### YamlMime:JavaEnum
uid: "com.azure.messaging.eventhubs.models.CloseReason"
fullName: "com.azure.messaging.eventhubs.models.CloseReason"
name: "CloseReason"
nameWithType: "CloseReason"
summary: "Enumeration of all possible reasons a <xref uid=\"com.azure.messaging.eventhubs.implementation.PartitionProcessor\" data-throw-if-not-resolved=\"false\" data-raw-source=\"PartitionProcessor\"></xref> may be closed."
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#describeConstable--\">describeConstable</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 **CloseReason**</br> extends <a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Enum.html\">Enum</a>&lt;<xref href=\"com.azure.messaging.eventhubs.models.CloseReason?alt=com.azure.messaging.eventhubs.models.CloseReason&text=CloseReason\" data-throw-if-not-resolved=\"False\" />&gt;"
fields:
- uid: "com.azure.messaging.eventhubs.models.CloseReason.EVENT_PROCESSOR_SHUTDOWN"
fullName: "com.azure.messaging.eventhubs.models.CloseReason.EVENT_PROCESSOR_SHUTDOWN"
name: "EVENT_PROCESSOR_SHUTDOWN"
nameWithType: "CloseReason.EVENT_PROCESSOR_SHUTDOWN"
summary: "If the event processor is shutting down by calling <xref uid=\"com.azure.messaging.eventhubs.EventProcessorClient.stop()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventProcessorClient#stop()\"></xref>, the <xref uid=\"com.azure.messaging.eventhubs.implementation.PartitionProcessor.close*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"PartitionProcessor#close(CloseContext)\"></xref> will be called with this reason."
desc: "If the event processor is shutting down by calling <xref uid=\"com.azure.messaging.eventhubs.EventProcessorClient.stop()\" data-throw-if-not-resolved=\"false\" data-raw-source=\"EventProcessorClient#stop()\"></xref>, the <xref uid=\"com.azure.messaging.eventhubs.implementation.PartitionProcessor.close*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"PartitionProcessor#close(CloseContext)\"></xref> will be called with this reason."
- uid: "com.azure.messaging.eventhubs.models.CloseReason.LOST_PARTITION_OWNERSHIP"
fullName: "com.azure.messaging.eventhubs.models.CloseReason.LOST_PARTITION_OWNERSHIP"
name: "LOST_PARTITION_OWNERSHIP"
nameWithType: "CloseReason.LOST_PARTITION_OWNERSHIP"
summary: "If another event processor instance stole the ownership of a partition, this reason will be provided to <xref uid=\"com.azure.messaging.eventhubs.implementation.PartitionProcessor.close*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"PartitionProcessor#close(CloseContext)\"></xref>."
desc: "If another event processor instance stole the ownership of a partition, this reason will be provided to <xref uid=\"com.azure.messaging.eventhubs.implementation.PartitionProcessor.close*\" data-throw-if-not-resolved=\"false\" data-raw-source=\"PartitionProcessor#close(CloseContext)\"></xref>."
methods:
- uid: "com.azure.messaging.eventhubs.models.CloseReason.valueOf(java.lang.String)"
fullName: "com.azure.messaging.eventhubs.models.CloseReason.valueOf(String name)"
name: "valueOf(String name)"
nameWithType: "CloseReason.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 CloseReason valueOf(String name)"
returns:
type: "<xref href=\"com.azure.messaging.eventhubs.models.CloseReason?alt=com.azure.messaging.eventhubs.models.CloseReason&text=CloseReason\" data-throw-if-not-resolved=\"False\" />"
- uid: "com.azure.messaging.eventhubs.models.CloseReason.values()"
fullName: "com.azure.messaging.eventhubs.models.CloseReason.values()"
name: "values()"
nameWithType: "CloseReason.values()"
modifiers:
- "static"
syntax: "public static CloseReason[] values()"
returns:
type: "<xref href=\"com.azure.messaging.eventhubs.models.CloseReason?alt=com.azure.messaging.eventhubs.models.CloseReason&text=CloseReason\" data-throw-if-not-resolved=\"False\" />[]"
desc: "Enumeration of all possible reasons a <xref uid=\"com.azure.messaging.eventhubs.implementation.PartitionProcessor\" data-throw-if-not-resolved=\"false\" data-raw-source=\"PartitionProcessor\"></xref> may be closed."
metadata: {}
package: "com.azure.messaging.eventhubs.models"
artifact: com.azure:azure-messaging-eventhubs:5.18.7