PartitionEvent Class
- java.
lang. Object - com.
azure. messaging. eventhubs. models. PartitionEvent
- com.
public class PartitionEvent
A container for EventData along with the partition information for this event data.
Constructor Summary
Constructor | Description |
---|---|
PartitionEvent(PartitionContext partitionContext, EventData eventData, LastEnqueuedEventProperties lastEnqueuedEventProperties) |
Creates an instance of Partition |
Method Summary
Modifier and Type | Method and Description |
---|---|
Event |
getData()
Gets the event received from the partition. |
Last |
getLastEnqueuedEventProperties()
Gets the properties of the last enqueued event in this partition. |
Partition |
getPartitionContext()
Returns the partition information associated with the event data. |
Methods inherited from java.lang.Object
Constructor Details
PartitionEvent
public PartitionEvent(PartitionContext partitionContext, EventData eventData, LastEnqueuedEventProperties lastEnqueuedEventProperties)
Creates an instance of PartitionEvent.
Parameters:
Method Details
getData
public EventData getData()
Gets the event received from the partition.
Returns:
getLastEnqueuedEventProperties
public LastEnqueuedEventProperties getLastEnqueuedEventProperties()
Gets the properties of the last enqueued event in this partition.
Returns:
getPartitionContext
public PartitionContext getPartitionContext()
Returns the partition information associated with the event data.
Returns:
Applies to
Azure SDK for Java