Click or drag to resize
IRetryPolicyOnReadTimeout 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.4.0
Syntax
C#
RetryDecision OnReadTimeout(
	IStatement query,
	ConsistencyLevel cl,
	int requiredResponses,
	int receivedResponses,
	bool dataRetrieved,
	int nbRetry
)

Parameters

query
Type: CassandraIStatement
the original query that timeouted.
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: RetryDecision
the retry decision. If RetryDecision.Rethrow is returned, a com.datastax.driver.core.exceptions.ReadTimeoutException will be thrown for the operation.
See Also