public enum CloseReason extends Enum<CloseReason>
PartitionProcessor
may be closed.Enum Constant and Description |
---|
EVENT_HUB_EXCEPTION
If a non-retryable exception occured when receiving events from Event Hub, this reason will be provided when
PartitionProcessor.close(CloseContext) is called. |
EVENT_PROCESSOR_SHUTDOWN
If the event processor is shutting down by calling
EventProcessorClient.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) . |
Modifier and Type | Method and Description |
---|---|
static CloseReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CloseReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CloseReason LOST_PARTITION_OWNERSHIP
PartitionProcessor.close(CloseContext)
.public static final CloseReason EVENT_PROCESSOR_SHUTDOWN
EventProcessorClient.stop()
, the PartitionProcessor.close(CloseContext)
will be called with this reason.public static final CloseReason EVENT_HUB_EXCEPTION
PartitionProcessor.close(CloseContext)
is called.public static CloseReason[] values()
public static CloseReason 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 © 2019 Microsoft Corporation. All rights reserved.