Share via


EventHubBufferedProducerClientOptions.MaximumEventBufferLengthPerPartition Property

Definition

The total number of events that can be buffered for publishing at a given time for a given partition. Once this capacity is reached, more events can enqueued by calling EnqueueEventAsync(EventData, EnqueueEventOptions, CancellationToken) or EnqueueEventsAsync(IEnumerable<EventData>, EnqueueEventOptions, CancellationToken), which will automatically wait for room to be available.

public int MaximumEventBufferLengthPerPartition { get; set; }
member this.MaximumEventBufferLengthPerPartition : int with get, set
Public Property MaximumEventBufferLengthPerPartition As Integer

Property Value

The default limit is 1500 queued events for each partition.

Exceptions

Occurs when the requested count is not between 1 and 1 million (inclusive).

Applies to