AllForOneStrategy Class |
Namespace: Akka.Actor
The AllForOneStrategy type exposes the following members.
Name | Description | |
---|---|---|
AllForOneStrategy |
Serialization-friendly constructor
| |
AllForOneStrategy(FuncException, Directive) |
Constructor that accepts only a decider and uses reasonable defaults for the other settings
| |
AllForOneStrategy(IDecider) |
Constructor that accepts only a decider and uses reasonable defaults for the other settings
| |
AllForOneStrategy(NullableInt32, NullableTimeSpan, IDecider) |
Applies the fault handling `Directive` (Resume, Restart, Stop) specified in the `Decider`
to all children when one fails, as opposed to OneForOneStrategy that applies
it only to the child actor that failed.
| |
AllForOneStrategy(NullableInt32, NullableTimeSpan, FuncException, Directive) |
Applies the fault handling `Directive` (Resume, Restart, Stop) specified in the `Decider`
to all children when one fails, as opposed to OneForOneStrategy that applies
it only to the child actor that failed.
| |
AllForOneStrategy(Int32, Int32, IDecider, Boolean) |
Applies the fault handling `Directive` (Resume, Restart, Stop) specified in the `Decider`
to all children when one fails, as opposed to OneForOneStrategy that applies
it only to the child actor that failed.
| |
AllForOneStrategy(Int32, Int32, FuncException, Directive, Boolean) |
Applies the fault handling `Directive` (Resume, Restart, Stop) specified in the `Decider`
to all children when one fails, as opposed to OneForOneStrategy that applies
it only to the child actor that failed.
|
Name | Description | |
---|---|---|
Decider | (Overrides SupervisorStrategyDecider.) | |
LoggingEnabled |
Determines if failures are logged
(Inherited from SupervisorStrategy.) | |
MaxNumberOfRetries |
The number of times a child actor is allowed to be restarted, negative value means no limit,
if the limit is exceeded the child actor is stopped.
| |
WithinTimeRangeMilliseconds |
The duration in milliseconds of the time window for MaxNumberOfRetries, negative values means no window.
|
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object).) | |
Equals(AllForOneStrategy) | Indicates whether the current object is equal to another object of the same type. | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Handle |
Determines what to do with the child when the given exception occurs.
(Overrides SupervisorStrategyHandle(IActorRef, Exception).) | |
HandleChildTerminated |
TBD
(Overrides SupervisorStrategyHandleChildTerminated(IActorContext, IActorRef, IEnumerableIInternalActorRef).) | |
HandleFailure(ActorCell, Exception, ChildRestartStats, IReadOnlyCollectionChildRestartStats) | Obsolete.
TBD
(Inherited from SupervisorStrategy.) | |
HandleFailure(ActorCell, IActorRef, Exception, ChildRestartStats, IReadOnlyCollectionChildRestartStats) |
This is the main entry point: in case of a child’s failure, this method
must try to handle the failure by resuming, restarting or stopping the
child (and returning `true`), or it returns `false` to escalate the
failure, which will lead to this actor re-throwing the exception which
caused the failure. The exception will not be wrapped.
This method calls SupervisorStrategy, which will
log the failure unless it is escalated. You can customize the logging by
setting SupervisorStrategy to `false` and
do the logging inside the `decider` or override the `LogFailure` method.
(Inherited from SupervisorStrategy.) | |
LogFailure |
Logs the failure.
(Inherited from SupervisorStrategy.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ProcessFailure(IActorContext, Boolean, Exception, ChildRestartStats, IReadOnlyCollectionChildRestartStats) | Obsolete.
Obsolete. Use ProcessFailure(IActorContext, Boolean, IActorRef, Exception, ChildRestartStats, IReadOnlyCollectionChildRestartStats) instead.
(Overrides SupervisorStrategyProcessFailure(IActorContext, Boolean, Exception, ChildRestartStats, IReadOnlyCollectionChildRestartStats).) | |
ProcessFailure(IActorContext, Boolean, IActorRef, Exception, ChildRestartStats, IReadOnlyCollectionChildRestartStats) |
TBD
(Overrides SupervisorStrategyProcessFailure(IActorContext, Boolean, IActorRef, Exception, ChildRestartStats, IReadOnlyCollectionChildRestartStats).) | |
RestartChild |
Restarts the child.
(Inherited from SupervisorStrategy.) | |
ResumeChild |
Resume the previously failed child: do never apply this to a child which
is not the currently failing child. Suspend/resume needs to be done in
matching pairs, otherwise actors will wake up too soon or never at all.
(Inherited from SupervisorStrategy.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
ToSurrogate |
Creates a surrogate representation of the current AllForOneStrategy.
(Overrides SupervisorStrategyToSurrogate(ActorSystem).) |
Name | Description | |
---|---|---|
AsInstanceOfT |
TBD
(Defined by Extensions.) | |
Match | Overloaded.
Matches the specified target.
(Defined by PatternMatch.) | |
MatchT | Overloaded.
Matches the specified target and return a result of target processing.
(Defined by PatternMatch.) |