Class ActorStashPlugin
An ActorProducerPluginBase that automatically initializes and manages the IStash for actors implementing IActorStash.
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class ActorStashPlugin : ActorProducerPluginBase, IActorProducerPlugin
Methods
| Edit this page View SourceAfterIncarnated(ActorBase, IActorContext)
Creates a new stash for specified actor if it has not been initialized already.
Declaration
public override void AfterIncarnated(ActorBase actor, IActorContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorBase | actor | The actor instance being created. |
| IActorContext | context | The context of the actor being created. |
Overrides
| Edit this page View SourceBeforeIncarnated(ActorBase, IActorContext)
Ensures, that all stashed messages inside actor stash have been unstashed.
Declaration
public override void BeforeIncarnated(ActorBase actor, IActorContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorBase | actor | The actor instance being recycled. |
| IActorContext | context | The context of the actor being recycled. |
Overrides
| Edit this page View SourceCanBeAppliedTo(Type)
Stash plugin is applied to all actors implementing IActorStash interface.
Declaration
public override bool CanBeAppliedTo(Type actorType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | actorType | The actor Type to check. |
Returns
| Type | Description |
|---|---|
| bool | true if |
Edit this page