pub unsafe extern "C" fn cass_execution_profile_set_latency_aware_routing(
    profile: *mut CassExecProfile,
    enabled: cass_bool_t
) -> CassError
Expand description

Configures the execution profile to use latency-aware request routing or not.

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.

Default: cass_false (disabled).

This routing policy is a top-level routing policy. It uses the base routing policy to determine locality (dc-aware) and/or placement (token-aware) before considering the latency.

@public @memberof CassExecProfile

@param[in] profile @param[in] enabled @return CASS_OK if successful, otherwise an error occurred.

@see cass_cluster_set_latency_aware_routing()