EventHubQueueCacheFactory.CreateBufferPool 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
用于为 EventHubQueueCache 配置 BufferPool 的函数。 用户可以替代此函数,以在 BufferPool 创建时提供更多自定义
protected virtual Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer> CreateBufferPool (Orleans.Configuration.StreamStatisticOptions statisticOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Orleans.Streaming.EventHubs.EventHubMonitorAggregationDimensions sharedDimensions, out string blockPoolId);
abstract member CreateBufferPool : Orleans.Configuration.StreamStatisticOptions * Microsoft.Extensions.Logging.ILoggerFactory * Orleans.Streaming.EventHubs.EventHubMonitorAggregationDimensions * string -> Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer>
override this.CreateBufferPool : Orleans.Configuration.StreamStatisticOptions * Microsoft.Extensions.Logging.ILoggerFactory * Orleans.Streaming.EventHubs.EventHubMonitorAggregationDimensions * string -> Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer>
Protected Overridable Function CreateBufferPool (statisticOptions As StreamStatisticOptions, loggerFactory As ILoggerFactory, sharedDimensions As EventHubMonitorAggregationDimensions, ByRef blockPoolId As String) As IObjectPool(Of FixedSizeBuffer)
参数
- statisticOptions
- StreamStatisticOptions
- loggerFactory
- ILoggerFactory
- sharedDimensions
- EventHubMonitorAggregationDimensions
- blockPoolId
- String