Class InitializationContext
java.lang.Object
com.azure.messaging.eventhubs.models.InitializationContext
The initialization context that is supplied to
EventProcessorClientBuilder.processPartitionInitialization(Consumer) before the EventProcessorClient
instance begins processing events from a partition.-
Constructor Summary
ConstructorsConstructorDescriptionInitializationContext(PartitionContext partitionContext) Creates an instance of InitializationContext for the partition provided in thePartitionContext. -
Method Summary
Modifier and TypeMethodDescriptionReturns the partition information for which the event processing is going to start.
-
Constructor Details
-
InitializationContext
Creates an instance of InitializationContext for the partition provided in thePartitionContext.- Parameters:
partitionContext- The partition information for which the event processing is going to start.- Throws:
NullPointerException- ifpartitionContextorinitialPositionisnull.
-
-
Method Details
-
getPartitionContext
Returns the partition information for which the event processing is going to start.- Returns:
- The partition information for which the event processing is going to start.
-