SendBatchFailedContext Class
- java.
lang. Object - com.
azure. messaging. eventhubs. models. SendBatchFailedContext
- com.
public final class SendBatchFailedContext
Contains information about a batch that was unable to be published, as well as the exception that occurred and the partition that the batch was being published to.
Constructor Summary
| Constructor | Description |
|---|---|
| SendBatchFailedContext(Iterable<EventData> events, String partitionId, Throwable throwable) |
Creates a new instance. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Iterable<Event |
getEvents()
Gets the events that failed to send. |
| String |
getPartitionId()
Gets the partition id that the failed batch went to. |
| Throwable |
getThrowable()
Gets the error that occurred when sending the batch. |
Methods inherited from java.lang.Object
Constructor Details
SendBatchFailedContext
public SendBatchFailedContext(Iterable<EventData> events, String partitionId, Throwable throwable)
Creates a new instance.
Parameters:
Method Details
getEvents
public Iterable<EventData> getEvents()
Gets the events that failed to send.
Returns:
getPartitionId
public String getPartitionId()
Gets the partition id that the failed batch went to.
Returns:
getThrowable
public Throwable getThrowable()
Gets the error that occurred when sending the batch.
Returns: