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.
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
| Improve this Doc View SourceStash
Declaration
public IStash Stash { get; set; }
Property Value
Type | Description |
---|---|
IStash |