Class SendBatchSucceededContext

java.lang.Object
com.azure.messaging.eventhubs.models.SendBatchSucceededContext

public final class SendBatchSucceededContext extends Object
Contains information about a batch that was published and the partition that it was published to.
See Also:
  • Constructor Details

    • SendBatchSucceededContext

      public SendBatchSucceededContext(Iterable<EventData> events, String partitionId)
      Initializes a new instance of the class.
      Parameters:
      events - The set of events in the batch that was published.
      partitionId - The identifier of the partition that the batch was published to.
  • Method Details

    • getEvents

      public Iterable<EventData> getEvents()
      Gets the set of events in the batch that was published.
      Returns:
      The set of events in the batch that was published.
    • getPartitionId

      public String getPartitionId()
      Gets the identifier of the partition that the batch was published to.
      Returns:
      The identifier of the partition that the batch was published to.