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
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per