public interface EventDataBatch
| Modifier and Type | Method and Description |
|---|---|
int |
getSize()
Get the number of events present in this
EventDataBatch |
boolean |
tryAdd(EventData eventData)
Add's
EventData to EventDataBatch, if permitted by the batch's size limit. |
int getSize()
EventDataBatchboolean tryAdd(EventData eventData) throws PayloadSizeExceededException
EventData to EventDataBatch, if permitted by the batch's size limit.
This method is not thread-safe.eventData - The EventData to add.EventData addition to this batch/collection was successful or not.PayloadSizeExceededException - when a single EventData instance exceeds maximum allowed size of the batchCopyright © 2019 Microsoft Corporation. All rights reserved.