Edit

Share via


EventHubQueueCacheFactory Class

Definition

Factory class to configure and create IEventHubQueueCache

public class EventHubQueueCacheFactory : Orleans.Streaming.EventHubs.IEventHubQueueCacheFactory
type EventHubQueueCacheFactory = class
    interface IEventHubQueueCacheFactory
Public Class EventHubQueueCacheFactory
Implements IEventHubQueueCacheFactory
Inheritance
EventHubQueueCacheFactory
Implements

Constructors

EventHubQueueCacheFactory(EventHubStreamCachePressureOptions, StreamCacheEvictionOptions, StreamStatisticOptions, IEventHubDataAdapter, EventHubMonitorAggregationDimensions, Func<EventHubCacheMonitorDimensions, ILoggerFactory,ICacheMonitor>, Func<EventHubBlockPoolMonitorDimensions, ILoggerFactory,IBlockPoolMonitor>)

Constructor for EventHubQueueCacheFactory

Properties

BlockPoolMonitorFactory

Create a block pool monitor to report performance metrics. Factory function should return an IObjectPoolMonitor.

CacheMonitorFactory

Create a cache monitor to report performance metrics. Factory function should return an ICacheMonitor.

Methods

AddCachePressureMonitors(IEventHubQueueCache, EventHubStreamCachePressureOptions, ILogger)

Function used to configure cache pressure monitors for EventHubQueueCache. User can override this function to provide more customization on cache pressure monitors

CreateBufferPool(StreamStatisticOptions, ILoggerFactory, EventHubMonitorAggregationDimensions, String)

Function used to configure BufferPool for EventHubQueueCache. User can override this function to provide more customization on BufferPool creation

CreateCache(String, IEventHubDataAdapter, StreamStatisticOptions, StreamCacheEvictionOptions, IStreamQueueCheckpointer<String>, ILoggerFactory, IObjectPool<FixedSizeBuffer>, String, TimePurgePredicate, EventHubMonitorAggregationDimensions)

Default function to be called to create an EventhubQueueCache in IEventHubQueueCacheFactory.CreateCache method. User can override this method to add more customization.

CreateCache(String, IStreamQueueCheckpointer<String>, ILoggerFactory)

Function which create an EventHubQueueCache, which by default will configure the EventHubQueueCache using configuration in CreateBufferPool function and AddCachePressureMonitors function.

Applies to