C# Class Akka.Dispatch.MessageQueues.DequeWrapperMessageQueue

Message queue for supporting IDequeBasedMessageQueueSemantics within Mailbox instances. Uses a Stack{Envelope} internally - each individual EnqueueFirst
Inheritance: IMessageQueue, IDequeBasedMessageQueueSemantics
Afficher le fichier Open project: rogeralsing/akka.net

Méthodes publiques

Méthode Description
DequeWrapperMessageQueue ( IMessageQueue messageQueue ) : System.Collections.Generic

Takes another IMessageQueue as an argument - wraps messageQueue in order to provide it with prepend (EnqueueFirst) semantics.

Enqueue ( Envelope envelope ) : void

Enqueue a message to the back of the IMessageQueue

EnqueueFirst ( Envelope envelope ) : void

Add a message to the front of the queue via the prepend buffer.

TryDequeue ( Envelope &envelope ) : bool

Attempt to dequeue a message from the front of the prepend buffer. If the prepend buffer is empty, dequeue a message from the normal IMessageQueue wrapped but this wrapper.

Method Details

DequeWrapperMessageQueue() public méthode

Takes another IMessageQueue as an argument - wraps messageQueue in order to provide it with prepend (EnqueueFirst) semantics.
public DequeWrapperMessageQueue ( IMessageQueue messageQueue ) : System.Collections.Generic
messageQueue IMessageQueue
Résultat System.Collections.Generic

Enqueue() public méthode

Enqueue a message to the back of the IMessageQueue
public Enqueue ( Envelope envelope ) : void
envelope Akka.Actor.Envelope
Résultat void

EnqueueFirst() public méthode

Add a message to the front of the queue via the prepend buffer.
public EnqueueFirst ( Envelope envelope ) : void
envelope Akka.Actor.Envelope The message we wish to append to the front of the queue.
Résultat void

TryDequeue() public méthode

Attempt to dequeue a message from the front of the prepend buffer. If the prepend buffer is empty, dequeue a message from the normal IMessageQueue wrapped but this wrapper.
public TryDequeue ( Envelope &envelope ) : bool
envelope Akka.Actor.Envelope The message to return, if any
Résultat bool