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
Mostrar archivo Open project: rogeralsing/akka.net

Public Methods

Method 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 method

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
return System.Collections.Generic

Enqueue() public method

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

EnqueueFirst() public method

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.
return void

TryDequeue() public method

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
return bool