azure-messaging-eventhubs
Loading...
Searching...
No Matches
Public Attributes | List of all members
Azure::Messaging::EventHubs::EventDataBatchOptions Struct Referencefinal

EventDataBatchOptions contains optional parameters for the [ProducerClient.CreateEventDataBatch] function. More...

#include <event_data_batch.hpp>

Public Attributes

Azure::Nullable< std::uint64_t > MaxBytes
 MaxBytes overrides the max size (in bytes) for a batch. By default CreateEventDataBatch will use the max message size provided by the service.
 
std::string PartitionKey
 PartitionKey is hashed to calculate the partition assignment.Messages and message batches with the same PartitionKey are guaranteed to end up in the same partition. Note that if you use this option then PartitionId cannot be set.
 
std::string PartitionId
 PartitionId is the ID of the partition to send these messages to. Note that if you use this option then PartitionKey cannot be set.
 

Detailed Description

Remarks
If both PartitionKey and PartitionId are empty, Event Hubs will choose an arbitrary partition for any events in this [EventDataBatch].

The documentation for this struct was generated from the following file: