Class ConsulRetryOptions
Configuration values used for the retry feature
Inheritance
System.Object
ConsulRetryOptions
Namespace: Steeltoe.Discovery.Consul.Discovery
Assembly: Steeltoe.Discovery.Consul.dll
Syntax
public class ConsulRetryOptions : object
Properties
| Edit this page View SourceEnabled
Gets or sets a value indicating whether retries are enabled, defaults false
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
InitialInterval
Gets or sets the initial interval to use during retrys, defaults 1000ms
Declaration
public int InitialInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxAttempts
Gets or sets the maximum number of retrys, default 6
Declaration
public int MaxAttempts { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MaxInterval
Gets or sets the maximum interval to use during retrys, defaults 2000ms
Declaration
public int MaxInterval { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Multiplier
Gets or sets the multiplier used when doing retrys, default 1.1
Declaration
public double Multiplier { get; set; }
Property Value
Type | Description |
---|---|
System.Double |