Click or drag to resize

RetryDecision Class

A retry decision to adopt on a Cassandra exception (read/write timeout or unavailable exception).

There is three possible decision:

  • Rethrow: no retry should be attempted and an exception should be thrown
  • Retry: the operation will be retried. The consistency level of the retry should be specified.
  • Ignore: no retry should be attempted and the exception should be ignored. In that case, the operation that triggered the Cassandra exception will return an empty result set.

Inheritance Hierarchy
SystemObject
  DseRetryDecision

Namespace:  Dse
Assembly:  Dse (in Dse.dll) Version: 2.6.0
Syntax
C#
public class RetryDecision

The RetryDecision type exposes the following members.

Properties
  NameDescription
Public propertyDecisionType
Gets the type of this retry decision.
Public propertyRetryConsistencyLevel
Gets the consistency level for a retry decision or null if this retry decision is an Ignore or a Rethrow.
Public propertyUseCurrentHost
Determines whether the retry policy uses the same host for retry decision. Default: true.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIgnore
Creates an Ignore retry decision.
Public methodStatic memberRethrow
Creates a Rethrow retry decision.
Public methodStatic memberRetry(NullableConsistencyLevel)
Creates a decision to retry using the provided consistency level on the same host.
Public methodStatic memberRetry(NullableConsistencyLevel, Boolean)
Creates a decision to retry using the provided consistency level.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also

Reference