HazelcastFailoverOptions Class
Namespace: Hazelcast
Assembly: Hazelcast.Net.dll
Represents the Hazelcast client failover options.
public sealed class HazelcastFailoverOptions : HazelcastOptionsBase
Inherited Members
Remarks
The client initially tries to connect to the first cluster of the Clients list, then tries each cluster in the list in order, and cycle the list at most TryCount times before failing and shutting down.
When the client gets disconnected, it first tries to reconnect to the current cluster, then tries each cluster in the list in order, and cycle the list at most TryCount times before failing and shutting down.
So if the Clients list is (A, B, C) and client is disconnected from B and TryCount is 2, it will try C, B, A, C, B, A in this order and then shutdown.
The retry strategy for each cluster is configured with a 2 minutes timeout, i.e. the client will try to connect to each cluster for at most 2 minutes before failing.
Constructors
Name | Description |
---|---|
HazelcastFailoverOptions() | Initializes a new instance of the HazelcastFailoverOptions class. |
Properties
Name | Description |
---|---|
Clients | Gets the list of cluster in the failover setup. |
ServiceProvider | Gets the IServiceProvider. |
TryCount | Gets or sets the number of times that the client will try to reconnect to each cluster in the failover setup before shutting down. |