Class ConsulRetryOptions
- Namespace
- Steeltoe.Discovery.Consul.Configuration
- Assembly
- Steeltoe.Discovery.Consul.dll
Configuration values used for the retry feature.
public sealed class ConsulRetryOptions
- Inheritance
-
ConsulRetryOptions
- Inherited Members
Properties
Enabled
Gets or sets a value indicating whether to try again When registering the running app fails. Default value: false.
public bool Enabled { get; set; }
Property Value
InitialInterval
Gets or sets the time to wait (in milliseconds) after the first registration failure. Default value: 1000.
public int InitialInterval { get; set; }
Property Value
MaxAttempts
Gets or sets the maximum number of registration attempts (if retries are enabled). Default value: 6.
public int MaxAttempts { get; set; }
Property Value
MaxInterval
Gets or sets the upper bound (in milliseconds) for intervals. Default value: 2000.
public int MaxInterval { get; set; }
Property Value
Multiplier
Gets or sets the factor to increment the next interval with. Default value: 1.1.
public double Multiplier { get; set; }