Class PartitionEvent
java.lang.Object
com.azure.messaging.eventhubs.models.PartitionEvent
A container for
EventData
along with the partition information for this event data.-
Constructor Summary
ConstructorDescriptionPartitionEvent
(PartitionContext partitionContext, EventData eventData, LastEnqueuedEventProperties lastEnqueuedEventProperties) Creates an instance of PartitionEvent. -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Gets the event received from the partition.Gets the properties of the last enqueued event in this partition.Returns the partition information associated with the event data.
-
Constructor Details
-
PartitionEvent
public PartitionEvent(PartitionContext partitionContext, EventData eventData, LastEnqueuedEventProperties lastEnqueuedEventProperties) Creates an instance of PartitionEvent.- Parameters:
partitionContext
- The partition information associated with the event data.eventData
- The event data received from the Event Hub.lastEnqueuedEventProperties
- The properties of the last enqueued event in the partition.- Throws:
NullPointerException
- ifpartitionContext
oreventData
isnull
.
-
-
Method Details
-
getPartitionContext
Returns the partition information associated with the event data.- Returns:
- The partition information associated with the event data.
-
getData
Gets the event received from the partition.- Returns:
- Event received from the partition.
-
getLastEnqueuedEventProperties
Gets the properties of the last enqueued event in this partition.- Returns:
- The properties of the last enqueued event in this partition.
-