.NET Client Documentation
5.1.1
Search Results for

    Show / Hide Table of Contents

    HazelcastFailoverOptions Class

    Namespace: Hazelcast
    Assembly: Hazelcast.Net.dll

    Represents the Hazelcast client failover options.

    public sealed class HazelcastFailoverOptions : HazelcastOptionsBase
    Inheritance
    Object
    HazelcastOptionsBase
    HazelcastFailoverOptions
    Inherited Members
    HazelcastOptionsBase.ServiceProvider
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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

    HazelcastFailoverOptions()

    Initializes a new instance of the HazelcastFailoverOptions class.

    Properties

    Clients

    Gets the list of cluster in the failover setup.

    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.

    In This Article
    Back to top Copyright © 2010-2022 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.