Package com.hazelcast.client.config
Class SubsetRoutingConfig
java.lang.Object
com.hazelcast.client.config.SubsetRoutingConfig
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the strategy for routing client connections to members.boolean
setEnabled
(boolean enabled) setRoutingStrategy
(RoutingStrategy routingStrategy) Sets the strategy for routing client connections to members.
-
Field Details
-
DEFAULT_ROUTING_STRATEGY
DefaultRoutingStrategy
-
-
Constructor Details
-
SubsetRoutingConfig
public SubsetRoutingConfig() -
SubsetRoutingConfig
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
-
getRoutingStrategy
Returns the strategy for routing client connections to members.- Returns:
- the configured strategy.
-
setRoutingStrategy
Sets the strategy for routing client connections to members.- Parameters:
routingStrategy
- the strategy to set.- Returns:
- this configuration.
-