Class CloseContext
java.lang.Object
com.azure.messaging.eventhubs.models.CloseContext
This class contains information about a partition for which this
EventProcessorClient
stopped processing.-
Constructor Summary
ConstructorDescriptionCloseContext
(PartitionContext partitionContext, CloseReason closeReason) Creates a new instance of CloseContext. -
Method Summary
Modifier and TypeMethodDescriptionReturns the reason for stopping the event processing.Returns the partition information for which the processing stopped.
-
Constructor Details
-
CloseContext
Creates a new instance of CloseContext.- Parameters:
partitionContext
- The partition information for which the processing stopped.closeReason
- The reason for stopping the event processing.- Throws:
NullPointerException
- ifpartitionContext
orcloseReason
isnull
.
-
-
Method Details
-
getPartitionContext
Returns the partition information for which the processing stopped.- Returns:
- The partition information for which the processing stopped.
-
getCloseReason
Returns the reason for stopping the event processing.- Returns:
- The reason for stopping the event processing.
-