GeneratorAdapterFactory
class
Namespace: Orleans.Providers.Streams.Generator
Adapter factory for stream generator stream provider. This factory acts as the adapter and the adapter factory. It creates receivers that use configurable generator to generate event streams, rather than reading them from storage.
public class GeneratorAdapterFactory : IControllable, IQueueAdapter, IQueueAdapterCache, IQueueAdapterFactoryConstructors
Properties
DirectionGets the direction of this queue adapter:StreamProviderDirection,StreamProviderDirection, orStreamProviderDirection.IsRewindableGets a value indicating whether this is a rewindable stream adapter - supports subscribing from previous point in time.NameGets the name of the adapter. Primarily for logging purposes
Methods
Create(IServiceProvider, string)Creates a newGeneratorAdapterFactoryinstance.CreateAdapterCreates a queue adapter.CreateQueueCache(QueueId)Create a cache for a given queue idCreateReceiver(QueueId)Creates a queue receiver for the specified queueIdExecuteCommand(int, object)A function to execute a control command.GetDeliveryFailureHandler(QueueId)Acquire delivery failure handler for a queueGetQueueAdapterCacheCreates queue message cache adapter.GetStreamQueueMapperCreates a queue mapper.InitInitializes the factory.QueueMessageBatchAsync(StreamId, IEnumerable<T>, StreamSequenceToken, Dictionary<string, object>)Writes a set of events to the queue as a single batch associated with the provided streamId.
