你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EventHubBufferedProducerClientOptions.MaximumEventBufferLengthPerPartition 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
给定分区在给定时间可以缓冲发布的事件总数。 达到此容量后,可以通过调用 EnqueueEventAsync(EventData, EnqueueEventOptions, CancellationToken) 或 EnqueueEventsAsync(IEnumerable<EventData>, EnqueueEventOptions, CancellationToken)来排队更多事件,这将自动等待可用空间。
public int MaximumEventBufferLengthPerPartition { get; set; }
member this.MaximumEventBufferLengthPerPartition : int with get, set
Public Property MaximumEventBufferLengthPerPartition As Integer
属性值
每个分区的默认限制为 1500 个排队事件。
例外
当请求的计数不在 100 万到 100 万 ((含) )之间时发生。