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
Comentarios
https://aka.ms/ContentUserFeedback.
Próximamente: A lo largo de 2024 iremos eliminando gradualmente GitHub Issues como mecanismo de comentarios sobre el contenido y lo sustituiremos por un nuevo sistema de comentarios. Para más información, vea:Enviar y ver comentarios de