Class RestartSettings
Inheritance
RestartSettings
Assembly: Akka.Streams.dll
Syntax
public class RestartSettings
Properties
|
Improve this Doc
View Source
MaxBackoff
Declaration
public TimeSpan MaxBackoff { get; }
Property Value
|
Improve this Doc
View Source
MaxRestarts
Declaration
public int MaxRestarts { get; }
Property Value
|
Improve this Doc
View Source
MaxRestartsWithin
Declaration
public TimeSpan MaxRestartsWithin { get; }
Property Value
|
Improve this Doc
View Source
MinBackoff
Declaration
public TimeSpan MinBackoff { get; }
Property Value
|
Improve this Doc
View Source
RandomFactor
Declaration
public double RandomFactor { get; }
Property Value
Methods
|
Improve this Doc
View Source
Create(TimeSpan, TimeSpan, Double)
Declaration
public static RestartSettings Create(TimeSpan minBackoff, TimeSpan maxBackoff, double randomFactor)
Parameters
Type |
Name |
Description |
TimeSpan |
minBackoff |
Minimum (initial) duration until the child actor will started again, if it is terminated
|
TimeSpan |
maxBackoff |
The exponential back-off is capped to this duration
|
Double |
randomFactor |
After calculation of the exponential back-off an additional random delay based on this factor is added, e.g. 0.2 adds up to 20% delay. In order to skip this additional delay pass in 0 .
|
Returns
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
|
Improve this Doc
View Source
WithMaxBackoff(TimeSpan)
The exponential back-off is capped to this duration
Declaration
public RestartSettings WithMaxBackoff(TimeSpan value)
Parameters
Returns
|
Improve this Doc
View Source
WithMaxRestarts(Int32, TimeSpan)
The amount of restarts is capped to count
within a timeframe of within
Declaration
public RestartSettings WithMaxRestarts(int count, TimeSpan within)
Parameters
Returns
|
Improve this Doc
View Source
WithMinBackoff(TimeSpan)
Minimum (initial) duration until the child actor will started again, if it is terminated
Declaration
public RestartSettings WithMinBackoff(TimeSpan value)
Parameters
Returns
|
Improve this Doc
View Source
WithRandomFactor(Double)
After calculation of the exponential back-off an additional random delay based on this factor is added
- e.g.
0.2
adds up to 20%
delay. In order to skip this additional delay pass in 0
Declaration
public RestartSettings WithRandomFactor(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Returns
Extension Methods