| Package | Description |
|---|---|
| com.azure.messaging.eventhubs |
Package containing classes for creating
EventHubProducerAsyncClient,
EventHubProducerClient,
EventHubConsumerAsyncClient,
EventHubConsumerClient, or
EventProcessorClient to perform operations on Azure Event Hubs. |
| com.azure.messaging.eventhubs.models |
Package containing classes used for creating and configuring events that are being sent-to and received-from Azure
Event Hubs service.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<EventDataBatch> |
EventHubProducerAsyncClient.createBatch(CreateBatchOptions options)
Creates an
EventDataBatch configured with the options specified. |
EventDataBatch |
EventHubProducerClient.createBatch(CreateBatchOptions options)
Creates an
EventDataBatch configured with the options specified. |
| Modifier and Type | Method and Description |
|---|---|
CreateBatchOptions |
CreateBatchOptions.setMaximumSizeInBytes(int maximumSizeInBytes)
Sets the maximum size for the
batch of events, in bytes. |
CreateBatchOptions |
CreateBatchOptions.setPartitionId(String partitionId)
Sets the identifier of the Event Hub partition that the events in the
EventDataBatch will be sent to. |
CreateBatchOptions |
CreateBatchOptions.setPartitionKey(String partitionKey)
Sets a hashing key to be provided for the batch of events.
|
Copyright © 2021 Microsoft Corporation. All rights reserved.