Skip to main content

Class QueryDatacenterOptions

Namespace: Consul
Assembly: Consul.dll

QueryDatacenterOptions sets options about how we fail over if there are no healthy nodes in the local datacenter.

public class QueryDatacenterOptions

Inheritance

objectQueryDatacenterOptions

Inherited Members

object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

Constructors

QueryDatacenterOptions()

public QueryDatacenterOptions()

Properties

Datacenters

Datacenters is a fixed list of datacenters to try after NearestN. We never try a datacenter multiple times, so those are subtracted from this list before proceeding.

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public List<string> Datacenters { get; set; }

Property Value

List <string >

NearestN

NearestN is set to the number of remote datacenters to try, based on network coordinates.

public int NearestN { get; set; }

Property Value

int