Class DelegatingSupervisorStrategy
Implements
Inherited Members
Namespace: Akka.TestKit
Assembly: Akka.TestKit.dll
Syntax
public class DelegatingSupervisorStrategy : SupervisorStrategy, ISurrogated
Properties
| Edit this page View SourceDecider
TBD
Declaration
public override IDecider Decider { get; }
Property Value
Type | Description |
---|---|
IDecider |
Overrides
Methods
| Edit this page View SourceHandle(IActorRef, Exception)
Determines which Directive this strategy uses to handle exception
that occur in the child
actor.
Declaration
protected override Directive Handle(IActorRef child, Exception exception)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | child | The child actor where the exception occurred. |
Exception | exception | The exception that was thrown. |
Returns
Type | Description |
---|---|
Directive | The directive used to handle the exception. |
Overrides
| Edit this page View SourceHandleChildTerminated(IActorContext, IActorRef, IEnumerable<IInternalActorRef>)
This method is called after the child has been removed from the set of children. It does not need to do anything special. Exceptions thrown from this method do NOT make the actor fail if this happens during termination.
Declaration
public override void HandleChildTerminated(IActorContext actorContext, IActorRef child, IEnumerable<IInternalActorRef> children)
Parameters
Type | Name | Description |
---|---|---|
IActorContext | actorContext | TBD |
IActorRef | child | TBD |
IEnumerable<IInternalActorRef> | children | TBD |
Overrides
| Edit this page View SourceProcessFailure(IActorContext, bool, IActorRef, Exception, ChildRestartStats, IReadOnlyCollection<ChildRestartStats>)
This method is called to act on the failure of a child: restart if the flag is true, stop otherwise.
Declaration
public override void ProcessFailure(IActorContext context, bool restart, IActorRef child, Exception cause, ChildRestartStats stats, IReadOnlyCollection<ChildRestartStats> children)
Parameters
Type | Name | Description |
---|---|---|
IActorContext | context | The actor context. |
bool | restart | if set to |
IActorRef | child | The child actor |
Exception | cause | The exception that caused the child to fail. |
ChildRestartStats | stats | The stats for the child that failed. The ActorRef to the child can be obtained via the Child property |
IReadOnlyCollection<ChildRestartStats> | children | The stats for all children |
Overrides
| Edit this page View SourceToSurrogate(ActorSystem)
Creates a surrogate representation of the current SupervisorStrategy.
Declaration
public override ISurrogate ToSurrogate(ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
ActorSystem | system | The actor system that owns this router. |
Returns
Type | Description |
---|---|
ISurrogate | The surrogate representation of the current SupervisorStrategy. |
Overrides
| Edit this page View SourceUpdate(IActorRef, SupervisorStrategy)
Declaration
public void Update(IActorRef child, SupervisorStrategy supervisorStrategy)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | child | |
SupervisorStrategy | supervisorStrategy |