Click or drag to resize

IExtendedRetryPolicy Interface

A policy that extends IRetryPolicy providing an additional method to handle unexpected errors.

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.6.0
Syntax
C#
public interface IExtendedRetryPolicy : IRetryPolicy

The IExtendedRetryPolicy type exposes the following members.

Methods
  NameDescription
Public methodOnReadTimeout
Defines whether to retry and at which consistency level on a read timeout.

Note that this method may be called even if requiredResponses >= receivedResponses if dataPresent is false (see com.datastax.driver.core.exceptions.ReadTimeoutException#WasDataRetrieved).

(Inherited from IRetryPolicy.)
Public methodOnRequestError
Defines whether to retry and at which consistency level on an unexpected error.

This method might be invoked in the following situations:

  1. On a client timeout, while waiting for the server response (see ReadTimeoutMillis).
  2. On a socket error (socket closed, etc.).
  3. When the contacted host replies with an OVERLOADED error or a SERVER_ERROR.

Note that when such an error occurs, there is no guarantee that the mutation has been applied server-side or not.

Public methodOnUnavailable
Defines whether to retry and at which consistency level on an unavailable exception.
(Inherited from IRetryPolicy.)
Public methodOnWriteTimeout
Defines whether to retry and at which consistency level on a write timeout.
(Inherited from IRetryPolicy.)
Top
See Also

Reference