Search Results for

    Show / Hide Table of Contents

    Class UntypedActorWithStash

    Actor base class that should be extended to create an actor with a stash.

    The stash 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 subclasses of `UntypedActorWithStash` by default request a Deque based mailbox since this class implements the IRequiresMessageQueue<T> marker interface.

    You can override the default mailbox provided when `IDequeBasedMessageQueueSemantics` are requested via config:
    akka.actor.mailbox.requirements {
        "Akka.Dispatch.IDequeBasedMessageQueueSemantics" = 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` based actor that enforces unbounded deques see UntypedActorWithUnboundedStash. There is also an unrestricted version UntypedActorWithUnrestrictedStash that does not enforce the mailbox type.

    Inheritance
    object
    ActorBase
    UntypedActor
    UntypedActorWithStash
    Implements
    IInternalActor
    IWithStash
    IWithUnrestrictedStash
    IActorStash
    IRequiresMessageQueue<IDequeBasedMessageQueueSemantics>
    Inherited Members
    UntypedActor.Receive(object)
    UntypedActor.RunTask(Action)
    UntypedActor.RunTask(Func<Task>)
    UntypedActor.OnReceive(object)
    UntypedActor.Become(UntypedReceive)
    UntypedActor.BecomeStacked(UntypedReceive)
    UntypedActor.Context
    ActorBase.Sender
    ActorBase.Self
    ActorBase.AroundReceive(Receive, object)
    ActorBase.EmptyReceive
    ActorBase.Unhandled(object)
    ActorBase.Become(Receive)
    ActorBase.BecomeStacked(Receive)
    ActorBase.UnbecomeStacked()
    ActorBase.SetReceiveTimeout(TimeSpan?)
    ActorBase.AroundPreRestart(Exception, object)
    ActorBase.AroundPreStart()
    ActorBase.PreStart()
    ActorBase.AroundPostRestart(Exception, object)
    ActorBase.PreRestart(Exception, object)
    ActorBase.PostRestart(Exception)
    ActorBase.AroundPostStop()
    ActorBase.PostStop()
    ActorBase.SupervisorStrategy()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public abstract class UntypedActorWithStash : UntypedActor, IInternalActor, IWithStash, IWithUnrestrictedStash, IActorStash, IRequiresMessageQueue<IDequeBasedMessageQueueSemantics>

    Properties

    | Edit this page View Source

    Stash

    Gets or sets the stash. This will be automatically populated by the framework AFTER the constructor has been run. Implement this as an auto property.

    Declaration
    public IStash Stash { get; set; }
    Property Value
    Type Description
    IStash

    The stash.

    Implements

    IInternalActor
    IWithStash
    IWithUnrestrictedStash
    IActorStash
    IRequiresMessageQueue<T>

    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