Class ClusterRoutingConfig

java.lang.Object
com.hazelcast.client.config.ClusterRoutingConfig

public class ClusterRoutingConfig extends Object
Config for client routing and associated options. The overall approach to routing used by the client is defined by the RoutingMode, with three modes available:

Special notes for RoutingMode.MULTI_MEMBER routing This feature requires the cluster members to be Enterprise nodes. If the cluster is not licensed appropriately, the client will not be able to connect to the cluster, failing with an UnsupportedRoutingModeException The minimum cluster version required for this feature is 5.5. If the cluster version is less than 5.5, the client will not be able to connect to the cluster, failing with an UnsupportedClusterVersionException

Since:
5.5
  • Field Details

    • DEFAULT_ROUTING_STRATEGY

      public static final RoutingStrategy DEFAULT_ROUTING_STRATEGY
      The default RoutingStrategy to use when one is not explicitly defined
    • DEFAULT_ROUTING_MODE

      public static final RoutingMode DEFAULT_ROUTING_MODE
      The default RoutingMode to use when one is not explicitly defined
  • Constructor Details

    • ClusterRoutingConfig

      public ClusterRoutingConfig()
    • ClusterRoutingConfig

      public ClusterRoutingConfig(ClusterRoutingConfig clusterRoutingConfig)
  • Method Details