SendBatchSucceededContext Class

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

public final class SendBatchSucceededContext

Contains information about a batch that was published and the partition that it was published to.

Constructor Summary

Constructor Description
SendBatchSucceededContext(Iterable<EventData> events, String partitionId)

Initializes a new instance of the class.

Method Summary

Modifier and Type Method and Description
Iterable<EventData> getEvents()

Gets the set of events in the batch that was published.

String getPartitionId()

Gets the identifier of the partition that the batch was published to.

Methods inherited from java.lang.Object

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.

Applies to