C# Класс Akka.Dispatch.MessageQueues.DequeWrapperMessageQueue

Message queue for supporting IDequeBasedMessageQueueSemantics within Mailbox instances. Uses a Stack{Envelope} internally - each individual EnqueueFirst
Наследование: IMessageQueue, IDequeBasedMessageQueueSemantics
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

DequeWrapperMessageQueue() публичный Метод

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
Результат System.Collections.Generic

Enqueue() публичный Метод

Enqueue a message to the back of the IMessageQueue
public Enqueue ( Envelope envelope ) : void
envelope Akka.Actor.Envelope
Результат void

EnqueueFirst() публичный Метод

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.
Результат void

TryDequeue() публичный Метод

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
Результат bool