/// * `event_id` is the ID of the event that was scheduled with [`EnvoyClusterScheduler::commit`]
/// When the stream is destroyed before async host selection completes (e.g., due to a timeout),
/// This is passed to [`ClusterLb::choose_host`] and must be stored by the module when returning
/// [`EnvoyAsyncHostSelectionComplete::async_host_selection_complete`] to deliver the async result.
/// Since a header key can have multiple values, the `index` parameter selects a specific value.
/// Returns `Some((value, total_count))` where `total_count` is the number of values for the key,
/// When `strict` is true, the load balancer should return no host if the override is not valid.
/// Returns the host pointers if all hosts were added successfully, or `None` if any host failed
fn remove_hosts(&self, hosts: &[abi::envoy_dynamic_module_type_cluster_host_envoy_ptr]) -> usize;
/// Add multiple hosts to the cluster at the specified priority level in a single batch operation.
/// Returns the host pointers if all hosts were added successfully, or `None` if any host failed.
/// Add multiple hosts to the cluster at the specified priority level with per-host locality and
/// This is the priority-aware version of [`EnvoyCluster::add_hosts_with_locality`]. Only modules
/// Get a host by index within all hosts at the given priority level, regardless of health status.
/// Unlike [`EnvoyClusterLoadBalancer::get_healthy_host`] which only returns healthy hosts, this
/// Returns the value of a per-host stat. This provides access to host-level counters and gauges
/// load balancer instance (per worker thread) and can be used for per-host state such as moving
/// The scheduler can be used from any thread. When [`EnvoyClusterScheduler::commit`] is called,
fn remove_hosts(&self, hosts: &[abi::envoy_dynamic_module_type_cluster_host_envoy_ptr]) -> usize {
unsafe { abi::envoy_dynamic_module_callback_cluster_lb_get_locality_count(self.raw, priority) }
// The raw pointer references C++ DynamicModuleClusterConfig which is safe for metric operations