EventHubQueueCacheFactory.CreateBufferPool 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CreateBufferPool(EventHubStreamProviderSettings, Logger, EventHubMonitorAggregationDimensions, String) |
用于为 EventHubQueueCache 配置 BufferPool 的函数。 用户可以重写此函数,以在创建 BufferPool 时提供更多自定义 |
CreateBufferPool(StreamStatisticOptions, ILoggerFactory, EventHubMonitorAggregationDimensions, ITelemetryProducer, String) |
用于为 EventHubQueueCache 配置 BufferPool 的函数。 用户可以重写此函数,以在创建 BufferPool 时提供更多自定义 |
CreateBufferPool(EventHubStreamProviderSettings, Logger, EventHubMonitorAggregationDimensions, String)
用于为 EventHubQueueCache 配置 BufferPool 的函数。 用户可以重写此函数,以在创建 BufferPool 时提供更多自定义
protected virtual Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer> CreateBufferPool (Orleans.ServiceBus.Providers.EventHubStreamProviderSettings providerSettings, Orleans.Runtime.Logger logger, Orleans.ServiceBus.Providers.EventHubMonitorAggregationDimensions sharedDimensions, out string blockPoolId);
abstract member CreateBufferPool : Orleans.ServiceBus.Providers.EventHubStreamProviderSettings * Orleans.Runtime.Logger * Orleans.ServiceBus.Providers.EventHubMonitorAggregationDimensions * string -> Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer>
override this.CreateBufferPool : Orleans.ServiceBus.Providers.EventHubStreamProviderSettings * Orleans.Runtime.Logger * Orleans.ServiceBus.Providers.EventHubMonitorAggregationDimensions * string -> Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer>
Protected Overridable Function CreateBufferPool (providerSettings As EventHubStreamProviderSettings, logger As Logger, sharedDimensions As EventHubMonitorAggregationDimensions, ByRef blockPoolId As String) As IObjectPool(Of FixedSizeBuffer)
参数
- providerSettings
- EventHubStreamProviderSettings
- logger
- Logger
- sharedDimensions
- EventHubMonitorAggregationDimensions
- blockPoolId
- String
创建的池的 ID,主要用于监视作为维度
返回
适用于
CreateBufferPool(StreamStatisticOptions, ILoggerFactory, EventHubMonitorAggregationDimensions, ITelemetryProducer, String)
- Source:
- EventHubQueueCacheFactory.cs
用于为 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.ServiceBus.Providers.EventHubMonitorAggregationDimensions sharedDimensions, Orleans.Runtime.ITelemetryProducer telemetryProducer, out string blockPoolId);
abstract member CreateBufferPool : Orleans.Configuration.StreamStatisticOptions * Microsoft.Extensions.Logging.ILoggerFactory * Orleans.ServiceBus.Providers.EventHubMonitorAggregationDimensions * Orleans.Runtime.ITelemetryProducer * string -> Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer>
override this.CreateBufferPool : Orleans.Configuration.StreamStatisticOptions * Microsoft.Extensions.Logging.ILoggerFactory * Orleans.ServiceBus.Providers.EventHubMonitorAggregationDimensions * Orleans.Runtime.ITelemetryProducer * string -> Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer>
Protected Overridable Function CreateBufferPool (statisticOptions As StreamStatisticOptions, loggerFactory As ILoggerFactory, sharedDimensions As EventHubMonitorAggregationDimensions, telemetryProducer As ITelemetryProducer, ByRef blockPoolId As String) As IObjectPool(Of FixedSizeBuffer)
参数
- statisticOptions
- StreamStatisticOptions
- loggerFactory
- ILoggerFactory
- sharedDimensions
- EventHubMonitorAggregationDimensions
- telemetryProducer
- ITelemetryProducer
- blockPoolId
- String