Interface IExtendedRetryPolicy
A policy that extends IRetryPolicy providing an additional method to handle unexpected errors.
Inherited Members
Namespace: Cassandra
Assembly: Cassandra.dll
Syntax
public interface IExtendedRetryPolicy : IRetryPolicy
Methods
OnRequestError(IStatement, Configuration, Exception, int)
Defines whether to retry and at which consistency level on an unexpected error.
This method might be invoked in the following situations:
- On a client timeout, while waiting for the server response (see ReadTimeoutMillis).
- On a socket error (socket closed, etc.).
- When the contacted host replies with an
OVERLOADED
error or aSERVER_ERROR
.
Note that when such an error occurs, there is no guarantee that the mutation has been applied server-side or not.
Declaration
RetryDecision OnRequestError(IStatement statement, Configuration config, Exception ex, int nbRetry)
Parameters
Type | Name | Description |
---|---|---|
IStatement | statement | The original query that failed. |
Configuration | config | The current cluster configuration. |
Exception | ex | The exception that caused this request to fail. |
int | nbRetry | The number of retries already performed for this operation. |
Returns
Type | Description |
---|---|
RetryDecision |