EventHubClient.createPartitionSender(final String partitionId) Method

Definition

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 final CompletableFuture<PartitionSender> createPartitionSender(final String partitionId)
Parameters
partitionId
final String

partitionId of EventHub to send the EventData's to

Returns
final CompletableFuture<PartitionSender>

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

Exceptions

if Service Bus service encountered problems during connection creation.

Overrides