| SupervisorStrategyProcessFailure Method (IActorContext, Boolean, IActorRef, Exception, ChildRestartStats, IReadOnlyCollectionChildRestartStats) |
This method is called to act on the failure of a child: restart if the flag is true, stop otherwise.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax protected abstract void ProcessFailure(
IActorContext context,
bool restart,
IActorRef child,
Exception cause,
ChildRestartStats stats,
IReadOnlyCollection<ChildRestartStats> children
)
abstract ProcessFailure :
context : IActorContext *
restart : bool *
child : IActorRef *
cause : Exception *
stats : ChildRestartStats *
children : IReadOnlyCollection<ChildRestartStats> -> unit
Parameters
- context
- Type: Akka.ActorIActorContext
The actor context. - restart
- Type: SystemBoolean
if set to true restart, stop otherwise. - child
- Type: Akka.ActorIActorRef
The child actor - cause
- Type: SystemException
The exception that caused the child to fail. - stats
- Type: Akka.Actor.InternalChildRestartStats
The stats for the child that failed. The ActorRef to the child can be obtained via the Child property - children
- Type: System.Collections.GenericIReadOnlyCollectionChildRestartStats
The stats for all children
See Also