Class RestartSettings
  
  
  
    Inheritance
    
    RestartSettings
   
  
  
  Assembly: Akka.Streams.dll
  Syntax
  
    public class RestartSettings
   
  Properties
  
    |
    Edit this page
  
  
    View Source
  
  
  MaxBackoff
  
  
  Declaration
  
    public TimeSpan MaxBackoff { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  MaxRestarts
  
  
  Declaration
  
    public int MaxRestarts { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  MaxRestartsWithin
  
  
  Declaration
  
    public TimeSpan MaxRestartsWithin { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  MinBackoff
  
  
  Declaration
  
    public TimeSpan MinBackoff { get; }
   
  Property Value
  
  
    |
    Edit this page
  
  
    View Source
  
  
  RandomFactor
  
  
  Declaration
  
    public double RandomFactor { get; }
   
  Property Value
  
  Methods
  
    |
    Edit this page
  
  
    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.2adds up to20%delay. In order to skip this additional delay pass in0. | 
    
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  ToString()
  
  
  Declaration
  
    public override string ToString()
   
  Returns
  
  Overrides
  
  
    |
    Edit this page
  
  
    View Source
  
  
  WithMaxBackoff(TimeSpan)
  The exponential back-off is capped to this duration
Declaration
  
    public RestartSettings WithMaxBackoff(TimeSpan value)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    View Source
  
  
  WithMaxRestarts(int, TimeSpan)
  The amount of restarts is capped to count within a timeframe of within
Declaration
  
    public RestartSettings WithMaxRestarts(int count, TimeSpan within)
   
  Parameters
  
  Returns
  
  
    |
    Edit this page
  
  
    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
  
  
    |
    Edit this page
  
  
    View Source
  
  
  WithRandomFactor(double)
  After calculation of the exponential back-off an additional random delay based on this factor is added
- e.g. 0.2adds up to20%delay. In order to skip this additional delay pass in0
Declaration
  
    public RestartSettings WithRandomFactor(double value)
   
  Parameters
  
    
      
        | Type | Name | Description | 
    
    
      
        | double | value |  | 
    
  
  Returns
  
  Extension Methods