EventHubQueueCache(string, int, IObjectPool<FixedSizeBuffer>, IEventHubDataAdapter, IEvictionStrategy, IStreamQueueCheckpointer<string>, ILogger, ICacheMonitor, TimeSpan?, TimeSpan?)
public EventHubQueueCache(string partition, int defaultMaxAddCount, IObjectPool<FixedSizeBuffer> bufferPool, IEventHubDataAdapter dataAdapter, IEvictionStrategy evictionStrategy, IStreamQueueCheckpointer<string> checkpointer, ILogger logger, ICacheMonitor cacheMonitor, TimeSpan? cacheMonitorWriteInterval, TimeSpan? metadataMinTimeInCache) EventHub queue cache.
Parameters
partitionstring- Partition this instance is caching.
defaultMaxAddCountint- Default max number of items that can be added to the cache between purge calls.
bufferPoolIObjectPool<FixedSizeBuffer>- raw data block pool.
dataAdapterIEventHubDataAdapter- Adapts EventData to cached.
evictionStrategyIEvictionStrategy- Eviction strategy manage purge related events
checkpointerIStreamQueueCheckpointer<string>- Logic used to store queue position.
loggerILoggercacheMonitorICacheMonitorcacheMonitorWriteIntervalTimeSpan?metadataMinTimeInCacheTimeSpan?
