| IdempotenceAwareRetryPolicy Class |
In case of write timeouts this policy will always return Rethrow if the statement is considered non-idempotent (see IsIdempotent). For all other cases, this policy delegates the decision to the child policy.
Namespace: Dse
public class IdempotenceAwareRetryPolicy : IExtendedRetryPolicy, IRetryPolicy
The IdempotenceAwareRetryPolicy type exposes the following members.
| Name | Description | |
|---|---|---|
| IdempotenceAwareRetryPolicy |
Creates a new instance of IdempotenceAwareRetryPolicy.
|
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| OnReadTimeout |
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). | |
| OnRequestError |
Defines whether to retry and at which consistency level on an
unexpected error.
This method might be invoked in the following situations:
Note that when such an error occurs, there is no guarantee that the mutation has been applied server-side or not. | |
| OnUnavailable |
Defines whether to retry and at which consistency level on an unavailable
exception.
| |
| OnWriteTimeout |
Defines whether to retry and at which consistency level on a write timeout.
| |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |