IdempotenceAwareRetryPolicy.OnUnavailable Method |
Defines whether to retry and at which consistency level on an unavailable
exception.
Namespace: CassandraAssembly: Cassandra (in Cassandra.dll) Version: 3.0.9 (git 5ca22bb)
Syntaxpublic RetryDecision OnUnavailable(
IStatement stmt,
ConsistencyLevel cl,
int requiredReplica,
int aliveReplica,
int nbRetry
)
Parameters
- stmt
- Type: Cassandra.IStatement
- cl
- Type: Cassandra.ConsistencyLevel
the original consistency level for the operation. - requiredReplica
- Type: System.Int32
the number of replica that should have been
(known) alive for the operation to be attempted. - aliveReplica
- Type: System.Int32
the number of replica that were know to be alive
by the coordinator of the operation. - nbRetry
- Type: System.Int32
the number of retry already performed for this
operation.
Return Value
Type:
RetryDecisionthe retry decision. If
RetryDecision.Rethrow is
returned, an
com.datastax.driver.core.exceptions.UnavailableException will be
thrown for the operation.
Implements
IRetryPolicy.OnUnavailable(IStatement, ConsistencyLevel, Int32, Int32, Int32)
See Also