Module: policies/retry

Classes

FallthroughRetryPolicy
IdempotenceAwareRetryPolicy
RetryPolicy

Type Definitions

DecisionInfo

Decision information

Type:
  • Object
Properties:
Name Type Attributes Description
decision Number

The decision as specified in retryDecision.

consistency Number <optional>

The consistency level.

useCurrentHost useCurrentHost <optional>

Determines if it should use the same host to retry the request.

In the case that the current host is not available anymore, it will be retried on the next host even when useCurrentHost is set to true.

Source:

OperationInfo

Information of the execution to be used to determine whether the operation should be retried.

Type:
  • Object
Properties:
Name Type Description
query String

The query that was executed.

nbRetry Number

The number of retries already performed for this operation.

Source: