EventDataBatch Interface
public interface EventDataBatch
Helper for creating a batch/collection of EventData objects to be used while Sending to EventHubs
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract int |
getSize()
Get the number of events present in this EventDataBatch |
abstract boolean |
tryAdd(EventData eventData)
Add's EventData to EventDataBatch, if permitted by the batch's size limit. |
Method Details
getSize
public abstract int getSize()
Get the number of events present in this EventDataBatch
Returns:
tryAdd
public abstract boolean tryAdd(EventData eventData)
Add's EventData to EventDataBatch, if permitted by the batch's size limit. This method is not thread-safe.
Parameters:
Returns:
Throws:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for