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
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de