EventHubAdapterFactory
class
Namespace: Orleans.Streaming.EventHubs
Queue adapter factory which allows the PersistentStreamProvider to use EventHub as its backend persistent event queue.
public class EventHubAdapterFactory : IQueueAdapter, IQueueAdapterCache, IQueueAdapterFactoryConstructors
Properties
CacheFactoryCreates a message cache for an eventhub partition.DirectionDirection of this queue adapter: Read, Write or ReadWrite.IsRewindableDetermines whether this is a rewindable stream adapter - supports subscribing from previous point in time.NameName of the adapter. Primarily for logging purposesQueueMapperFactoryCreate a queue mapper to map EventHub partitions to queuesReceiverMonitorFactoryCreate a receiver monitor to report performance metrics. Factory function should return an IEventHubReceiverMonitor.StreamFailureHandlerFactoryCreates a failure handler for a partition.
Methods
Create(IServiceProvider, string)CreateAdapterCreate queue adapter.CreateCacheFactory(EventHubStreamCachePressureOptions)Create a IEventHubQueueCacheFactory. It will create a EventHubQueueCacheFactory by default. User can override this function to return their own implementation of IEventHubQueueCacheFactory, and other customization of IEventHubQueueCacheFactory if they may.CreateQueueCache(QueueId)Create a cache for a given queue idCreateReceiver(QueueId)Creates a queue receiver for the specified queueIdGetDeliveryFailureHandler(QueueId)Acquire delivery failure handler for a queueGetPartitionIdsAsyncGet partition Ids from eventhubGetQueueAdapterCacheCreate queue message cache adapterGetStreamQueueMapperCreate queue mapperInitInitEventHubClientQueueMessageBatchAsync(StreamId, IEnumerable<T>, StreamSequenceToken?, Dictionary<string, object>)Writes a set of events to the queue as a single batch associated with the provided streamId.
Fields
EventHubReceiverFactoryFactory to create a IEventHubReceiverdataAdapterData adapterloggerOrleans loggingserviceProviderFramework service provider
