Search Results for

    Show / Hide Table of Contents

    Interface IWithStash

    The IWithStash interface enables an actor to temporarily stash away messages that can not or should not be handled using the actor's current behavior.

    Note that the `IWithStash` interface can only be used together with actors that have a deque-based mailbox. By default Stash based actors request a Deque based mailbox since the stash interface extends IRequiresMessageQueue<T>.

    You can override the default mailbox provided when `IDequeBasedMessageQueueSemantics` are requested via config:
    akka.actor.mailbox.requirements {
        "Akka.Dispatch.IBoundedDequeBasedMessageQueueSemantics" = your-custom-mailbox
    }
    Alternatively, you can add your own requirement marker to the actor and configure a mailbox type to be used for your marker.

    For a `Stash` that also enforces unboundedness of the deque see IWithUnboundedStash. For a `Stash` that does not enforce any mailbox type see IWithUnrestrictedStash.

    Inherited Members
    IActorStash.Stash
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public interface IWithStash : IWithUnrestrictedStash, IActorStash, IRequiresMessageQueue<IDequeBasedMessageQueueSemantics>

    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