C# 클래스 Akka.Dispatch.MessageQueues.DequeWrapperMessageQueue

Message queue for supporting IDequeBasedMessageQueueSemantics within Mailbox instances. Uses a Stack{Envelope} internally - each individual EnqueueFirst
상속: IMessageQueue, IDequeBasedMessageQueueSemantics
파일 보기 프로젝트 열기: rogeralsing/akka.net

공개 메소드들

메소드 설명
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