SendBatchSucceededContext Class
- java.
lang. Object - com.
azure. messaging. eventhubs. models. SendBatchSucceededContext
- com.
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<Event |
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:
Method Details
getEvents
public Iterable<EventData> getEvents()
Gets the set of events in the batch that was published.
Returns:
getPartitionId
public String getPartitionId()
Gets the identifier of the partition that the batch was published to.
Returns: