Modifier and Type | Method and Description |
---|---|
int |
getCount()
Gets the number of
events in the batch. |
int |
getMaxSizeInBytes()
Gets the maximum size, in bytes, of the
EventDataBatch . |
int |
getSizeInBytes()
Gets the size of the
EventDataBatch in bytes. |
boolean |
tryAdd(EventData eventData)
Tries to add an
event to the batch. |
public int getCount()
events
in the batch.events
in the batch.public int getMaxSizeInBytes()
EventDataBatch
.EventDataBatch
.public int getSizeInBytes()
EventDataBatch
in bytes.EventDataBatch
in bytes.public boolean tryAdd(EventData eventData)
event
to the batch.eventData
- The EventData
to add to the batch.true
if the event could be added to the batch; false
if the event was too large to fit in
the batch.IllegalArgumentException
- if eventData
is null
.AmqpException
- if eventData
is larger than the maximum size of the EventDataBatch
.Copyright © 2019 Microsoft Corporation. All rights reserved.