Click or drag to resize

DowngradingConsistencyRetryPolicyOnUnavailable Method

Defines whether to retry and at which consistency level on an unavailable exception.

This method triggers a maximum of one retry. If at least one replica is know to be alive, the operation is retried at a lower consistency level.

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.6.0
Syntax
C#
public RetryDecision OnUnavailable(
	IStatement query,
	ConsistencyLevel cl,
	int requiredReplica,
	int aliveReplica,
	int nbRetry
)

Parameters

query
Type: DseIStatement
the original query for which the consistency level cannot be achieved.
cl
Type: DseConsistencyLevel
the original consistency level for the operation.
requiredReplica
Type: SystemInt32
the number of replica that should have been (known) alive for the operation to be attempted.
aliveReplica
Type: SystemInt32
the number of replica that were know to be alive by the coordinator of the operation.
nbRetry
Type: SystemInt32
the number of retry already performed for this operation.

Return Value

Type: RetryDecision
a RetryDecision as defined above.

Implements

IRetryPolicyOnUnavailable(IStatement, ConsistencyLevel, Int32, Int32, Int32)
See Also