MemoryStreamQueueGrain
class
Namespace: Orleans.Providers
Memory stream queue grain. This grain works as a storage queue of event data. Enqueue and Dequeue operations are supported. the max event count sets the max storage limit to the queue.
public class MemoryStreamQueueGrain : Grain, IGrain, IGrainWithGuidKey, IMemoryStreamQueueGrain, IAddressable, IGrainMigrationParticipantConstructors
Methods
Dequeue(int)Dequeues up to a max amount of maxCount event data from the queue.Enqueue(MemoryMessageData)Enqueues an event data. If the current total count reaches the max limit. throws an exception.
