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