IdempotenceAwareRetryPolicyOnReadTimeout Method |
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).
Namespace:
Cassandra
Assembly:
Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax public RetryDecision OnReadTimeout(
IStatement stmt,
ConsistencyLevel cl,
int requiredResponses,
int receivedResponses,
bool dataRetrieved,
int nbRetry
)
Parameters
- stmt
- Type: CassandraIStatement
- cl
- Type: CassandraConsistencyLevel
the original consistency level of the read that timeouted.
- requiredResponses
- Type: SystemInt32
the number of responses that were required
to achieve the requested consistency level. - receivedResponses
- Type: SystemInt32
the number of responses that had been
received by the time the timeout exception was raised. - dataRetrieved
- Type: SystemBoolean
whether actual data (by opposition to data
checksum) was present in the received responses. - nbRetry
- Type: SystemInt32
the number of retry already performed for this
operation.
Return Value
Type:
RetryDecisionthe retry decision. If
RetryDecision.Rethrow is
returned, a
com.datastax.driver.core.exceptions.ReadTimeoutException will be
thrown for the operation.
Implements
IRetryPolicyOnReadTimeout(IStatement, ConsistencyLevel, Int32, Int32, Boolean, Int32)See Also