pub unsafe extern "C" fn cass_retry_policy_default_new(
) -> *mut CassRetryPolicy
Expand description

Creates a new default retry policy.

This policy retries queries in the following cases:

  • On a read timeout, if enough replicas replied but data was not received.
  • On a write timeout, if a timeout occurs while writing the distributed batch log
  • On unavailable, it will move to the next host

In all other cases the error will be returned.

This policy always uses the query’s original consistency level.

@public @memberof CassRetryPolicy

@return Returns a retry policy that must be freed.

@see cass_retry_policy_free()