CloseReason Enum

  • java.lang.Object
    • java.lang.Enum
      • com.azure.messaging.eventhubs.models.CloseReason

public enum CloseReason
extends Enum<CloseReason>

Enumeration of all possible reasons a PartitionProcessor may be closed.

Fields

EVENT_PROCESSOR_SHUTDOWN

If the event processor is shutting down by calling stop(), the PartitionProcessor#close(CloseContext) will be called with this reason.

LOST_PARTITION_OWNERSHIP

If another event processor instance stole the ownership of a partition, this reason will be provided to PartitionProcessor#close(CloseContext).

Methods inherited from java.lang.Enum

Methods inherited from java.lang.Object

Methods

valueOf(String name)

public static CloseReason valueOf(String name)

Parameters

name
String

Returns

values()

public static CloseReason[] values()

Returns

Applies to