Class SubsetRoutingConfig

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

public class SubsetRoutingConfig extends Object
Config for routing client connections to subset of cluster members.

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

  • Constructor Details

    • SubsetRoutingConfig

      public SubsetRoutingConfig()
    • SubsetRoutingConfig

      public SubsetRoutingConfig(SubsetRoutingConfig subsetRoutingConfig)
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • setEnabled

      public SubsetRoutingConfig setEnabled(boolean enabled)
    • getRoutingStrategy

      public RoutingStrategy getRoutingStrategy()
      Returns the strategy for routing client connections to members.
      Returns:
      the configured strategy.
    • setRoutingStrategy

      public SubsetRoutingConfig setRoutingStrategy(RoutingStrategy routingStrategy)
      Sets the strategy for routing client connections to members.
      Parameters:
      routingStrategy - the strategy to set.
      Returns:
      this configuration.