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.
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public abstract class UntypedActorWithStash : UntypedActor, IInternalActor, IWithStash, IWithUnrestrictedStash, IActorStash, IRequiresMessageQueue<IDequeBasedMessageQueueSemantics>
Properties
| Edit this page View SourceStash
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. |