public static interface ErrorAwarePolicy.ErrorFilter
ErrorAwarePolicy
.
Only errors that indicate something wrong with a host should lead to its exclusion from query plans.
Modifier and Type | Method and Description |
---|---|
boolean |
shouldConsiderError(Exception e,
Host host,
Statement statement)
Whether an error should be counted in the host's error rate.
|
boolean shouldConsiderError(Exception e, Host host, Statement statement)
e
- the exception.host
- the host.statement
- the statement that caused the exception.true
if the exception should be counted.Copyright © 2012–2024. All rights reserved.