Search Results for

    Show / Hide Table of Contents

    Class DelegatingSupervisorStrategy

    Inheritance
    object
    SupervisorStrategy
    DelegatingSupervisorStrategy
    Implements
    ISurrogated
    Inherited Members
    SupervisorStrategy.HandleFailure(ActorCell, IActorRef, Exception, ChildRestartStats, IReadOnlyCollection<ChildRestartStats>)
    SupervisorStrategy.DefaultDecider
    SupervisorStrategy.RestartChild(IActorRef, Exception, bool)
    SupervisorStrategy.ResumeChild(IActorRef, Exception)
    SupervisorStrategy.LogFailure(IActorContext, IActorRef, Exception, Directive)
    SupervisorStrategy.LoggingEnabled
    SupervisorStrategy.DefaultStrategy
    SupervisorStrategy.StoppingStrategy
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.TestKit
    Assembly: Akka.TestKit.dll
    Syntax
    public class DelegatingSupervisorStrategy : SupervisorStrategy, ISurrogated

    Properties

    | Edit this page View Source

    Decider

    TBD

    Declaration
    public override IDecider Decider { get; }
    Property Value
    Type Description
    IDecider
    Overrides
    SupervisorStrategy.Decider

    Methods

    | Edit this page View Source

    Handle(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
    SupervisorStrategy.Handle(IActorRef, Exception)
    | Edit this page View Source

    HandleChildTerminated(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
    SupervisorStrategy.HandleChildTerminated(IActorContext, IActorRef, IEnumerable<IInternalActorRef>)
    | Edit this page View Source

    ProcessFailure(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 true restart, stop otherwise.

    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
    SupervisorStrategy.ProcessFailure(IActorContext, bool, IActorRef, Exception, ChildRestartStats, IReadOnlyCollection<ChildRestartStats>)
    | Edit this page View Source

    ToSurrogate(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
    SupervisorStrategy.ToSurrogate(ActorSystem)
    | Edit this page View Source

    Update(IActorRef, SupervisorStrategy)

    Declaration
    public void Update(IActorRef child, SupervisorStrategy supervisorStrategy)
    Parameters
    Type Name Description
    IActorRef child
    SupervisorStrategy supervisorStrategy

    Implements

    ISurrogated

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET