pub unsafe extern "C" fn cass_execution_profile_set_token_aware_routing(
profile: *mut CassExecProfile,
enabled: cass_bool_t
) -> CassError
Expand description
Configures the execution profile to use token-aware request routing or not.
Important: Token-aware routing depends on keyspace metadata. For this reason enabling token-aware routing will also enable retrieving and updating keyspace schema metadata.
Default: cass_true (enabled).
This routing policy composes the base routing policy, routing requests first to replicas on nodes considered ‘local’ by the base load balancing policy.
Note: Execution profiles use the cluster-level load balancing policy unless enabled. This setting is not applicable unless a load balancing policy is enabled on the execution profile.
@public @memberof CassExecProfile
@param[in] profile @param[in] enabled @return CASS_OK if successful, otherwise an error occurred.
@see cass_cluster_set_token_aware_routing()