View definition

type SimpleRetryPolicy

Defined in github.com/gocql/gocql/policies.go

Description

SimpleRetryPolicy has simple logic for attempting a query a fixed number of times.

See below for examples of usage:

//Assign to the cluster
cluster.RetryPolicy = &gocql.SimpleRetryPolicy{NumRetries: 3}

//Assign to a query
query.RetryPolicy(&gocql.SimpleRetryPolicy{NumRetries: 1})

SimpleRetryPolicy is referenced in 11 repositories

github.com/gocql/gocql github.com/hailocab/service-layer github.com/dmichellis/bosos

...