EventDataBatch.tryAdd(final EventData eventData) 方法

定义

Add's EventData to EventDataBatch, if permitted by the batch's size limit. This method is not thread-safe.

public boolean tryAdd(final EventData eventData)

参数

eventData
final EventData

The EventData to add.

返回

boolean

A boolean value indicating if the EventData addition to this batch/collection was successful or not.

例外

PayloadSizeExceededException

when a single EventData instance exceeds maximum allowed size of the batch

适用于