Chainable load balancing policy that filters out hosts based on their error rates.
When creating a query plan, this policy gathers a list of candidate hosts from its child policy; for each candidate
host, it then determines whether it should be included into or excluded from the final query plan, based on its
current error rate (measured over the last minute, with a 5-second granularity).
Note that the policy should not blindly count all errors in its measurements: some type of errors (e.g. CQL syntax
errors) can originate from the client and occur on all hosts, therefore they should not count towards the exclusion
threshold or all hosts could become excluded. You can provide your own
ErrorFilter to customize that logic.
The policy follows the builder pattern to be created, the
Builder class can be created with
This policy is currently in BETA mode and its behavior might be changing throughout different driver versions.