Class BoundedMessageQueue
An Bounded mailbox message queue.
Inherited Members
Namespace: Akka.Dispatch.MessageQueues
Assembly: Akka.dll
Syntax
public class BoundedMessageQueue : IMessageQueue, IBoundedMessageQueueSemantics, ISemantics
Constructors
| Improve this Doc View SourceBoundedMessageQueue(Config)
Creates a new bounded message queue.
Declaration
public BoundedMessageQueue(Config config)
Parameters
Type | Name | Description |
---|---|---|
Config | config | The configuration for this mailbox. |
BoundedMessageQueue(Int32, TimeSpan)
Initializes a new instance of the BoundedMessageQueue class.
Declaration
public BoundedMessageQueue(int boundedCapacity, TimeSpan pushTimeOut)
Parameters
Type | Name | Description |
---|---|---|
Int32 | boundedCapacity | TBD |
TimeSpan | pushTimeOut | TBD |
Exceptions
Type | Condition |
---|---|
ArgumentException | This exception is thrown if the given |
Properties
| Improve this Doc View SourceCount
Interface to be implemented by all mailbox message queues
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
Int32 |
HasMessages
Interface to be implemented by all mailbox message queues
Declaration
public bool HasMessages { get; }
Property Value
Type | Description |
---|---|
Boolean |
PushTimeOut
The push timeout for this bounded queue.
Declaration
public TimeSpan PushTimeOut { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Methods
| Improve this Doc View SourceCleanUp(IActorRef, IMessageQueue)
Interface to be implemented by all mailbox message queues
Declaration
public void CleanUp(IActorRef owner, IMessageQueue deadletters)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | owner | The owner of this message queue if available, "/deadletters" otherwise. |
IMessageQueue | deadletters | The dead letters message queue. |
Enqueue(IActorRef, Envelope)
Interface to be implemented by all mailbox message queues
Declaration
public void Enqueue(IActorRef receiver, Envelope envelope)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | receiver | The receiver of the messages. This field is only used in a couple of places, but it should not be removed. |
Envelope | envelope | The envelope to enqueue |
TryDequeue(out Envelope)
Interface to be implemented by all mailbox message queues
Declaration
public bool TryDequeue(out Envelope envelope)
Parameters
Type | Name | Description |
---|---|---|
Envelope | envelope | The envelope that was dequeued |
Returns
Type | Description |
---|---|
Boolean |
|