Search Results for

    Show / Hide Table of Contents

    Interface IMessageQueue

    Interface to be implemented by all mailbox message queues

    Namespace: Akka.Dispatch.MessageQueues
    Assembly: Akka.dll
    Syntax
    public interface IMessageQueue

    Properties

    | Edit this page View Source

    Count

    Returns the count of messages currently in the message queue

    Declaration
    int Count { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    HasMessages

    Tests if the message queue contains any messages

    Declaration
    bool HasMessages { get; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    CleanUp(IActorRef, IMessageQueue)

    Called when the Mailbox this queue belongs to is disposed of. Normally it is expected to transfer all remaining messages into the deadletter queue which is passed in. The owner of this IMessageQueue is passed in if available (e.g. for creating DeadLetters), "/deadletters" otherwise.

    Declaration
    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.

    | Edit this page View Source

    Enqueue(IActorRef, Envelope)

    Enqueues an mailbox envelope onto the message queue

    Declaration
    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

    | Edit this page View Source

    TryDequeue(out Envelope)

    Tries to pull an envelope of the message queue

    Declaration
    bool TryDequeue(out Envelope envelope)
    Parameters
    Type Name Description
    Envelope envelope

    The envelope that was dequeued

    Returns
    Type Description
    bool

    true if there's a message in the queue. false otherwise.

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET