IdempotenceAwareRetryPolicyOnWriteTimeout Method |
Defines whether to retry and at which consistency level on a write timeout.
Namespace: CassandraAssembly: Cassandra (in Cassandra.dll) Version: 3.2.0
Syntax public RetryDecision OnWriteTimeout(
IStatement stmt,
ConsistencyLevel cl,
string writeType,
int requiredAcks,
int receivedAcks,
int nbRetry
)
Parameters
- stmt
- Type: CassandraIStatement
- cl
- Type: CassandraConsistencyLevel
the original consistency level of the write that timeouted.
- writeType
- Type: SystemString
the type of the write that timeouted. - requiredAcks
- Type: SystemInt32
the number of acknowledgments that were required
to achieve the requested consistency level. - receivedAcks
- Type: SystemInt32
the number of acknowledgments that had been
received by the time the timeout exception was raised. - 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.WriteTimeoutException will
be thrown for the operation.
Implements
IRetryPolicyOnWriteTimeout(IStatement, ConsistencyLevel, String, Int32, Int32, Int32)See Also