public interface ExtendedRetryPolicy extends RetryPolicy
This interface exists only for backward compatibility reasons: its methods should really be
RetryPolicy, but adding it after the fact would break binary compatibility.
It should be merged into
RetryPolicy in the next major release.
All retry policies shipped with the driver implement this interface.
|Modifier and Type||Method and Description|
Defines whether to retry and at which consistency level on an unexpected error.
RetryPolicy.RetryDecision onRequestError(Statement statement, ConsistencyLevel cl, Exception e, int nbRetry)
statement- the original query that failed.
cl- the requested consistency level for the operation. Note that this is not necessarily the achieved consistency level (if any), and it is never a
e- the exception that caused this request to fail.
nbRetry- the number of retries already performed for this operation.
RetryDecision.RETHROWis returned, the
DriverExceptionpassed to this method will be thrown for the operation.