EventHubClient.createPartitionSender(final String partitionId) Method

定义

Create a PartitionSender which can publish EventData's directly to a specific EventHub partition (sender type iii. in the below list).

There are 3 patterns/ways to send to EventHubs:

i.   send(EventData) or send(Iterable)
ii.  send(EventData, String) or send(Iterable, String)
iii. PartitionSender#send(EventData) or PartitionSender#send(Iterable)

public CompletableFuture<PartitionSender> createPartitionSender(final String partitionId)
参数
partitionId
final String

partitionId of EventHub to send the EventData's to

返回
CompletableFuture<PartitionSender>

a CompletableFuture that would result in a PartitionSenderImpl when it is completed.

异常
EventHubException

if Service Bus service encountered problems during connection creation.

适用于