你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventHubBufferedProducerClientOptions.MaximumWaitTime 属性

定义

在发布部分完整批之前,等待使用缓冲区中的事件生成批处理的时间。

public TimeSpan? MaximumWaitTime { get; set; }
member this.MaximumWaitTime : Nullable<TimeSpan> with get, set
Public Property MaximumWaitTime As Nullable(Of TimeSpan)

属性值

默认等待时间为 1 秒。 对于大多数方案,建议至少允许 1 秒,以确保性能一致。

如果 null为 ,除非调用 ,否则 FlushAsync(CancellationToken) 批仅在已满时才发布。

例外

当请求的等待时间为负时发生。

适用于