PartitionSender.sendSync 方法

定义

重载

sendSync(final EventData data)

Synchronous version of send(EventData data) Api.

sendSync(final EventDataBatch eventDatas)

Synchronous version of send(EventDataBatch eventDatas)

sendSync(final Iterable<EventData> eventDatas)

Synchronous version of send(Iterable) .

sendSync(final EventData data)

Synchronous version of send(EventData data) Api.

public default void sendSync(final EventData data)

参数

data
final EventData

the EventData to be sent.

返回

default void

例外

PayloadSizeExceededException

if the total size of the EventData exceeds a pre-defined limit set by the service. Default is 256k bytes.

EventHubException

if Service Bus service encountered problems during the operation.

sendSync(final EventDataBatch eventDatas)

Synchronous version of send(EventDataBatch eventDatas)

public default void sendSync(final EventDataBatch eventDatas)

参数

eventDatas
final EventDataBatch

EventDataBatch to send to EventHub

返回

default void

例外

EventHubException

if Service Bus service encountered problems during the operation.

sendSync(final Iterable<EventData> eventDatas)

Synchronous version of send(Iterable) .

public default void sendSync(final Iterable<EventData> eventDatas)

参数

eventDatas
final Iterable<EventData>

batch of events to send to EventHub

返回

default void

例外

EventHubException

if Service Bus service encountered problems during the operation.

适用于